169 lines
49 KiB
JSON
169 lines
49 KiB
JSON
|
{
|
|||
|
"_args": [
|
|||
|
[
|
|||
|
{
|
|||
|
"raw": "request@^2.83.0",
|
|||
|
"scope": null,
|
|||
|
"escapedName": "request",
|
|||
|
"name": "request",
|
|||
|
"rawSpec": "^2.83.0",
|
|||
|
"spec": ">=2.83.0 <3.0.0",
|
|||
|
"type": "range"
|
|||
|
},
|
|||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl"
|
|||
|
]
|
|||
|
],
|
|||
|
"_from": "request@>=2.83.0 <3.0.0",
|
|||
|
"_id": "request@2.83.0",
|
|||
|
"_inCache": true,
|
|||
|
"_location": "/request",
|
|||
|
"_nodeVersion": "8.5.0",
|
|||
|
"_npmOperationalInternal": {
|
|||
|
"host": "s3://npm-registry-packages",
|
|||
|
"tmp": "tmp/request-2.83.0.tgz_1506481236346_0.6338994088582695"
|
|||
|
},
|
|||
|
"_npmUser": {
|
|||
|
"name": "mikeal",
|
|||
|
"email": "mikeal.rogers@gmail.com"
|
|||
|
},
|
|||
|
"_npmVersion": "5.3.0",
|
|||
|
"_phantomChildren": {},
|
|||
|
"_requested": {
|
|||
|
"raw": "request@^2.83.0",
|
|||
|
"scope": null,
|
|||
|
"escapedName": "request",
|
|||
|
"name": "request",
|
|||
|
"rawSpec": "^2.83.0",
|
|||
|
"spec": ">=2.83.0 <3.0.0",
|
|||
|
"type": "range"
|
|||
|
},
|
|||
|
"_requiredBy": [
|
|||
|
"/@expo/ngrok",
|
|||
|
"/auth0",
|
|||
|
"/xdl"
|
|||
|
],
|
|||
|
"_resolved": "https://registry.npmjs.org/request/-/request-2.83.0.tgz",
|
|||
|
"_shasum": "ca0b65da02ed62935887808e6f510381034e3356",
|
|||
|
"_shrinkwrap": null,
|
|||
|
"_spec": "request@^2.83.0",
|
|||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl",
|
|||
|
"author": {
|
|||
|
"name": "Mikeal Rogers",
|
|||
|
"email": "mikeal.rogers@gmail.com"
|
|||
|
},
|
|||
|
"bugs": {
|
|||
|
"url": "http://github.com/request/request/issues"
|
|||
|
},
|
|||
|
"dependencies": {
|
|||
|
"aws-sign2": "~0.7.0",
|
|||
|
"aws4": "^1.6.0",
|
|||
|
"caseless": "~0.12.0",
|
|||
|
"combined-stream": "~1.0.5",
|
|||
|
"extend": "~3.0.1",
|
|||
|
"forever-agent": "~0.6.1",
|
|||
|
"form-data": "~2.3.1",
|
|||
|
"har-validator": "~5.0.3",
|
|||
|
"hawk": "~6.0.2",
|
|||
|
"http-signature": "~1.2.0",
|
|||
|
"is-typedarray": "~1.0.0",
|
|||
|
"isstream": "~0.1.2",
|
|||
|
"json-stringify-safe": "~5.0.1",
|
|||
|
"mime-types": "~2.1.17",
|
|||
|
"oauth-sign": "~0.8.2",
|
|||
|
"performance-now": "^2.1.0",
|
|||
|
"qs": "~6.5.1",
|
|||
|
"safe-buffer": "^5.1.1",
|
|||
|
"stringstream": "~0.0.5",
|
|||
|
"tough-cookie": "~2.3.3",
|
|||
|
"tunnel-agent": "^0.6.0",
|
|||
|
"uuid": "^3.1.0"
|
|||
|
},
|
|||
|
"description": "Simplified HTTP request client.",
|
|||
|
"devDependencies": {
|
|||
|
"bluebird": "^3.2.1",
|
|||
|
"browserify": "^13.0.1",
|
|||
|
"browserify-istanbul": "^2.0.0",
|
|||
|
"buffer-equal": "^1.0.0",
|
|||
|
"codecov": "^2.0.2",
|
|||
|
"coveralls": "^2.11.4",
|
|||
|
"function-bind": "^1.0.2",
|
|||
|
"istanbul": "^0.4.0",
|
|||
|
"karma": "^1.1.1",
|
|||
|
"karma-browserify": "^5.0.1",
|
|||
|
"karma-cli": "^1.0.0",
|
|||
|
"karma-coverage": "^1.0.0",
|
|||
|
"karma-phantomjs-launcher": "^1.0.0",
|
|||
|
"karma-tap": "^3.0.1",
|
|||
|
"phantomjs-prebuilt": "^2.1.3",
|
|||
|
"rimraf": "^2.2.8",
|
|||
|
"server-destroy": "^1.0.1",
|
|||
|
"standard": "^9.0.0",
|
|||
|
"tape": "^4.6.0",
|
|||
|
"taper": "^0.5.0"
|
|||
|
},
|
|||
|
"directories": {},
|
|||
|
"dist": {
|
|||
|
"integrity": "sha512-lR3gD69osqm6EYLk9wB/G1W/laGWjzH90t1vEa2xuxHD5KUrSzp9pUSfTm+YC5Nxt2T8nMPEvKlhbQayU7bgFw==",
|
|||
|
"shasum": "ca0b65da02ed62935887808e6f510381034e3356",
|
|||
|
"tarball": "https://registry.npmjs.org/request/-/request-2.83.0.tgz"
|
|||
|
},
|
|||
|
"engines": {
|
|||
|
"node": ">= 4"
|
|||
|
},
|
|||
|
"files": [
|
|||
|
"lib/",
|
|||
|
"index.js",
|
|||
|
"request.js"
|
|||
|
],
|
|||
|
"gitHead": "dd427d7aa0177a876da69f82801bf0c63a855310",
|
|||
|
"greenkeeper": {
|
|||
|
"ignore": [
|
|||
|
"hawk",
|
|||
|
"har-validator"
|
|||
|
]
|
|||
|
},
|
|||
|
"homepage": "https://github.com/request/request#readme",
|
|||
|
"keywords": [
|
|||
|
"http",
|
|||
|
"simple",
|
|||
|
"util",
|
|||
|
"utility"
|
|||
|
],
|
|||
|
"license": "Apache-2.0",
|
|||
|
"main": "index.js",
|
|||
|
"maintainers": [
|
|||
|
{
|
|||
|
"name": "mikeal",
|
|||
|
"email": "mikeal.rogers@gmail.com"
|
|||
|
},
|
|||
|
{
|
|||
|
"name": "nylen",
|
|||
|
"email": "jnylen@gmail.com"
|
|||
|
},
|
|||
|
{
|
|||
|
"name": "fredkschott",
|
|||
|
"email": "fkschott@gmail.com"
|
|||
|
},
|
|||
|
{
|
|||
|
"name": "simov",
|
|||
|
"email": "simeonvelichkov@gmail.com"
|
|||
|
}
|
|||
|
],
|
|||
|
"name": "request",
|
|||
|
"optionalDependencies": {},
|
|||
|
"readme": "\n# Request - Simplified HTTP client\n\n[![npm package](https://nodei.co/npm/request.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/request/)\n\n[![Build status](https://img.shields.io/travis/request/request/master.svg?style=flat-square)](https://travis-ci.org/request/request)\n[![Coverage](https://img.shields.io/codecov/c/github/request/request.svg?style=flat-square)](https://codecov.io/github/request/request?branch=master)\n[![Coverage](https://img.shields.io/coveralls/request/request.svg?style=flat-square)](https://coveralls.io/r/request/request)\n[![Dependency Status](https://img.shields.io/david/request/request.svg?style=flat-square)](https://david-dm.org/request/request)\n[![Known Vulnerabilities](https://snyk.io/test/npm/request/badge.svg?style=flat-square)](https://snyk.io/test/npm/request)\n[![Gitter](https://img.shields.io/badge/gitter-join_chat-blue.svg?style=flat-square)](https://gitter.im/request/request?utm_source=badge)\n\n\n## Super simple to use\n\nRequest is designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirects by default.\n\n```js\nvar request = require('request');\nrequest('http://www.google.com', function (error, response, body) {\n console.log('error:', error); // Print the error if one occurred\n console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received\n console.log('body:', body); // Print the HTML for the Google homepage.\n});\n```\n\n\n## Table of contents\n\n- [Streaming](#streaming)\n- [Promises & Async/Await](#promises--asyncawait)\n- [Forms](#forms)\n- [HTTP Authentication](#http-authentication)\n- [Custom HTTP Headers](#custom-http-headers)\n- [OAuth Signing](#oauth-signing)\n- [Proxies](#proxies)\n- [Unix Domain Sockets](#unix-domain-sockets)\n- [TLS/SSL Protocol](#tlsssl-protocol)\n- [Support for HAR 1.2](#support-for-har-12)\n- [**All Available Options**](#requestoptions-callback)\n\nRequest also offers [convenience methods](#convenience-methods) like\n`request.defaults` and `request.post`, and there are\nlots of [usage examples](#examples) and several\n[debugging techniques](#debugging).\n\n\n---\n\n\n## Streaming\n\nYou can stream any response to a file stream.\n\n```js\nrequest('http://google.com/doodle.png').pipe(fs.createWriteStream('doodle.png'))\n```\n\nYou can also stream a file to a PUT or POST request. This method will also check the file extension against a mapping of file extensions to content-types (in this case `application/json`) and use the proper `content-type` in the PUT request (if the headers don’t already provide one).\n\n```js\nfs.createReadStream('file.json').pipe(request.put('http://mysite.com/obj.json'))\n```\n\nRequest can also `pipe` to itself. When doing so, `content-type` and `content-length` are preserved in the PUT headers.\n\n```js\nrequest.get('http://google.com/img.png').pipe(request.put('http://mysite.com/img.png'))\n```\n\nRequest emits a \"response\" event when a response is received. The `response` argument will be an instance of [http.IncomingMessage](https://nodejs.org/api/http.html#http_class_http_incomingmessage).\n\n```js\nrequest\n .get('http://google.com/img.png')\n .on('response', function(response) {\n console.log(response.statusCode) // 200\n console.log(response.headers['content-type']) // 'image/png'\n })\n .pipe(request.put('http://mysite.com/img.png'))\n```\n\nTo easily handle errors when streaming requests, listen to the `error` event before piping:\n\n```js\nrequest\n .get('http://mysite.com/doodle.png')\n .on('error', function(err) {\n console.log(err)\n })\n .pipe(fs.createWriteStream('doodle.png'))\n```\n\nNow let’s get fancy.\n\n```js\nhttp.createServer(function (req, resp) {\n if (req.url === '/doodle.png') {\n if (req.method === 'PUT') {\n req.pipe(request.put('http://mysite.com/doodle.png'))\n } else if (req.method === 'GET' || req.method === 'HEAD') {\n request.get('http://mysite.com/doodle.png').pipe(resp)\n }\n }\n})\n```\n\nYou can
|
|||
|
"readmeFilename": "README.md",
|
|||
|
"repository": {
|
|||
|
"type": "git",
|
|||
|
"url": "git+https://github.com/request/request.git"
|
|||
|
},
|
|||
|
"scripts": {
|
|||
|
"lint": "standard",
|
|||
|
"test": "npm run lint && npm run test-ci && npm run test-browser",
|
|||
|
"test-browser": "node tests/browser/start.js",
|
|||
|
"test-ci": "taper tests/test-*.js",
|
|||
|
"test-cov": "istanbul cover tape tests/test-*.js"
|
|||
|
},
|
|||
|
"version": "2.83.0"
|
|||
|
}
|