v1.3.9: update name and urls

This commit is contained in:
AJ ONeal 2019-04-16 12:41:05 -06:00
parent 999797270f
commit 1d4c3c1997
2 ha cambiato i file con 9 aggiunte e 11 eliminazioni

Vedi File

@ -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

Vedi File

@ -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)"
} }