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

Commit 40c445f

Browse files
Adam Baldwinothiym23
authored andcommitted
Use a https schema so the example works
When you try and run the example with the latest version of the lib it throws the following. This PR changes the example to use https, which works. ``` assert.js:93 throw new assert.AssertionError({ ^ AssertionError: must have a URL that starts with http: or https: ```
1 parent 2e1b2a5 commit 40c445f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ It handles all the caching and HTTP calls.
99
```javascript
1010
var RegClient = require('npm-registry-client')
1111
var client = new RegClient(config)
12-
var uri = "npm://registry.npmjs.org/npm"
12+
var uri = "https://registry.npmjs.org/npm"
1313
var params = {timeout: 1000}
1414

1515
client.get(uri, params, function (error, data, raw, res) {

0 commit comments

Comments
 (0)