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
|
# µRequest - Minimalist HTTP client | a [Root](https://rootprojects.org) project
|
||||||
|
|
||||||
A [Root](https://rootprojects.org) Project
|
|
||||||
|
|
||||||
A lightweight alternative to (and drop-in replacement for) request.
|
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.
|
µRequest is designed to be a drop-in replacement for request. It supports HTTPS and follows redirects by default.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install --save @coolaj86/urequest
|
npm install --save @root/request
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var request = require('@coolaj86/urequest');
|
var request = require('@root/request');
|
||||||
request('http://www.google.com', function (error, response, body) {
|
request('http://www.google.com', function (error, response, body) {
|
||||||
console.log('error:', error); // Print the error if one occurred
|
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
|
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`
|
1. Launch the node process like `NODE_DEBUG=urequest node script.js`
|
||||||
(`lib,request,otherlib` works too).
|
(`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).
|
as #1).
|
||||||
|
|
||||||
<!-- TODO
|
<!-- TODO
|
||||||
|
|
10
package.json
10
package.json
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@root/urequest",
|
"name": "@root/request",
|
||||||
"version": "1.3.8",
|
"version": "1.3.9",
|
||||||
"description": "A lightweight drop-in replacement for request",
|
"description": "A lightweight, zero-dependency drop-in replacement for request",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"lib"
|
"lib"
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.ppl.family/ppl/urequest.js.git"
|
"url": "https://git.rootprojects.org/root/request.js.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"request",
|
"request",
|
||||||
|
@ -24,6 +24,6 @@
|
||||||
"https",
|
"https",
|
||||||
"call"
|
"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)"
|
"license": "(MIT OR Apache-2.0)"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue