Permalink
Browse files

clean up example (closes #47)

  • Loading branch information...
1 parent 47a9806 commit 46cd0d376d7502d2d9c233cf2cb6639e30679118 @othiym23 othiym23 committed Jun 6, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.md
View
@@ -9,8 +9,10 @@ It handles all the caching and HTTP calls.
```javascript
var RegClient = require('npm-registry-client')
var client = new RegClient(config)
+var uri = "npm://registry.npmjs.org/npm"
+var options = {timeout: 1000}
-client.get("npm", "latest", 1000, function (er, data, raw, res) {
+client.get(uri, options, function (error, data, raw, res) {
// error is an error if there was a problem.
// data is the parsed data object
// raw is the json string

0 comments on commit 46cd0d3

Please sign in to comment.