v1.3.9: update name and urls
This commit is contained in:
parent
999797270f
commit
1d4c3c1997
10
README.md
10
README.md
|
@ -1,6 +1,4 @@
|
|||
# µRequest - Minimalist HTTP client
|
||||
|
||||
A [Root](https://rootprojects.org) Project
|
||||
# µRequest - Minimalist HTTP client | a [Root](https://rootprojects.org) project
|
||||
|
||||
A lightweight alternative to (and drop-in replacement for) request.
|
||||
|
||||
|
@ -11,11 +9,11 @@ Written from scratch.
|
|||
µRequest is designed to be a drop-in replacement for request. It supports HTTPS and follows redirects by default.
|
||||
|
||||
```bash
|
||||
npm install --save @coolaj86/urequest
|
||||
npm install --save @root/request
|
||||
```
|
||||
|
||||
```js
|
||||
var request = require('@coolaj86/urequest');
|
||||
var request = require('@root/request');
|
||||
request('http://www.google.com', function (error, response, body) {
|
||||
console.log('error:', error); // Print the error if one occurred
|
||||
console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
|
||||
|
@ -333,7 +331,7 @@ There are at least <!--three--> two ways to debug the operation of `request`:
|
|||
1. Launch the node process like `NODE_DEBUG=urequest node script.js`
|
||||
(`lib,request,otherlib` works too).
|
||||
|
||||
2. Set `require('@coolaj86/urequest').debug = true` at any time (this does the same thing
|
||||
2. Set `require('@root/request').debug = true` at any time (this does the same thing
|
||||
as #1).
|
||||
|
||||
<!-- TODO
|
||||
|
|
10
package.json
10
package.json
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@root/urequest",
|
||||
"version": "1.3.8",
|
||||
"description": "A lightweight drop-in replacement for request",
|
||||
"name": "@root/request",
|
||||
"version": "1.3.9",
|
||||
"description": "A lightweight, zero-dependency drop-in replacement for request",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"lib"
|
||||
|
@ -14,7 +14,7 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.ppl.family/ppl/urequest.js.git"
|
||||
"url": "https://git.rootprojects.org/root/request.js.git"
|
||||
},
|
||||
"keywords": [
|
||||
"request",
|
||||
|
@ -24,6 +24,6 @@
|
|||
"https",
|
||||
"call"
|
||||
],
|
||||
"author": "AJ ONeal <solderjs@gmail.com> (https://coolaj86.com/)",
|
||||
"author": "AJ ONeal <solderjs@gmail.com> (https://solderjs.com/)",
|
||||
"license": "(MIT OR Apache-2.0)"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue