Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
clean up example (closes #47)
Browse files Browse the repository at this point in the history
  • Loading branch information
othiym23 committed Jun 6, 2014
1 parent 47a9806 commit 46cd0d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -9,8 +9,10 @@ It handles all the caching and HTTP calls.
```javascript ```javascript
var RegClient = require('npm-registry-client') var RegClient = require('npm-registry-client')
var client = new RegClient(config) 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. // error is an error if there was a problem.
// data is the parsed data object // data is the parsed data object
// raw is the json string // raw is the json string
Expand Down

0 comments on commit 46cd0d3

Please sign in to comment.