{"name":"request-light","version":"0.5.0","description":"Lightweight request library. Promise based, with proxy support.","main":"./lib/node/main.js","browser":{"./lib/node/main.js":"./lib/browser/main.js"},"typings":"./api","author":{"name":"Microsoft Corporation"},"repository":{"type":"git","url":"git+https://github.com/microsoft/node-request-light.git"},"license":"MIT","bugs":{"url":"https://github.com/microsoft/node-request-light/issues"},"devDependencies":{"typescript":"^4.3.5","@types/node":"13.7.6","rimraf":"^3.0.2","ts-loader":"^9.2.3","webpack":"^5.44.0","webpack-cli":"^4.7.2","ava":"^3.15.0","proxy":"^1.0.2"},"dependencies":{"http-proxy-agent":"^4.0.1","https-proxy-agent":"^5.0.0","vscode-nls":"^5.0.0"},"scripts":{"compile":"webpack","watch":"webpack --watch","package":"webpack --mode production --devtool hidden-source-map","prepublishOnly":"npm run clean && npm run compile && npm run remove-sourcemap-refs","clean":"rimraf lib","remove-sourcemap-refs":"node ./build/remove-sourcemap-refs.js","postversion":"git push && git push --tags","test":"npm run compile && tsc -p ./src/test/ && ava ./lib/test/test.js"},"gitHead":"25a99cd8e09a7b120887c0facd0854650af090ad","homepage":"https://github.com/microsoft/node-request-light#readme","_id":"request-light@0.5.0","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"integrity":"sha512-Q7bMUSQSN6PzPuZCPXcJ2muUNHk+4Dt9Ly7lv3eRR87wmlkZYCIMswZtojsJ+KlUb/8L0YuJJH+YdnGluK55aw==","shasum":"d1a025681f7c1cf3f8d18dc3e76267a17d754662","tarball":"http://registry-npm.ywwl.com/request-light/download/request-light-0.5.0.tgz","fileCount":7,"unpackedSize":33416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7Fn2CRA9TVsSAnZWagAAGNwP/RK17y+bgNhuf9AVfFaM\nCY5sAvnzQMpveYL5cXn0AlVqGyYwzQcbHDeT+C2Y+H8v5kPt1ZIT3vHj/WLH\n3Eyv+EV054NUbeOca5jBdaO1IwrUmQdy6pBCTWSedgzgrxVa9Lp+PIGWzLjs\njEdFcTAuOqy600X291rDwvg+n93HQgWiytEPuU5TIYc/mnj5J0CLDArTkDHa\nQwPPvy9U1bnjrZW48yEVNYP/ZAN3STwMnRzIbK5sH9I/S8U05T3WYmCV8YjK\nN7Mo7jSNBh5jZ6GgJe7r+8ESeqBnG2ENTS+IovD5f2JLhwbIPyS9xk1+fGZE\n3p6pWdfFPX1BAUDqzl5HHSPzC7PhnNYiq9hRRjr8Xt8WSnsfQb+zhcO4idDM\nZU1pBOkwncYqsPZ3vXawBwskQuQl2k/LnzovJ7xI0eC3wLvO2RVZwTx6AjLC\nwvXYOAhjqL6ncLf9LgwojT5bHDTS/ZjKyVEd/kVLuQXzNTOaoGRBOzmofga4\n+Vp3lkFvWEN+20SP5iqHdsxf4FT0Au1rZiDMWQ8Yegx8xcIt4ef5fnl2aM+w\nupeViV7vCqeW9nwXza2Dnp9nVODsFzm5OEncOi/u2LjylMnZm/Z/vHJIGT2j\nmkbKsUarqUz27F43uQgqI/PGdZjo4SOT9uJNG/j8ClYAE03l5o+QJ7h7kDrv\nTHQF\r\n=SUho\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkKTR9w7+vPUCrVaEgY59IilgMB528FjiFX9ROpGe6uwIhAJjRmuUo0ZU8O/fEuVhVX0ll8k2Z0a7uufVOl+dYeM5/"}],"size":8709,"noattachment":false,"key":"/request-light/-/request-light-0.5.0.tgz"},"_npmUser":{"name":"aeschli","email":"martinae@microsoft.com"},"directories":{},"maintainers":[{"name":"jrieken","email":"jrieken@microsoft.com"},{"name":"egamma","email":"egamma@microsoft.com"},{"name":"chrisdias","email":"cdias@microsoft.com"},{"name":"alexandrudima","email":"alexdima@microsoft.com"},{"name":"aeschli","email":"martinae@microsoft.com"},{"name":"dbaeumer","email":"dirk.baeumer@gmail.com"},{"name":"bpasero","email":"benjpas@microsoft.com"},{"name":"isidor","email":"inikolic@microsoft.com"},{"name":"joaomoreno.ms","email":"joao.moreno@microsoft.com"},{"name":"aweinand","email":"aweinand@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request-light_0.5.0_1626102261911_0.5233863555526206"},"_hasShrinkwrap":false,"readme":"# request-light\n\n\n[![npm Package](https://img.shields.io/npm/v/request-light.svg?style=flat-square)](https://www.npmjs.org/package/request-light)\n[![NPM Downloads](https://img.shields.io/npm/dm/request-light.svg)](https://npmjs.org/package/request-light)\n[![Build Status](https://github.com/microsoft/node-request-light/workflows/Tests/badge.svg)](https://github.com/microsoft/node-request-light/workflows/Tests)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA lightweight request library intended to be used by VSCode extensions.\n- NodeJS and browser main entry points\n- proxy support: Use `configure` or `HTTP_PROXY` and `HTTPS_PROXY` env variables to configure the HTTP proxy addresses.\n\n```ts\nimport { xhr, XHRResponse, getErrorStatusDescription } from 'request-light';\n\nconst headers = { 'Accept-Encoding': 'gzip, deflate' };\nreturn xhr({ url: url, followRedirects: 5, headers }).then(response => {\n    return response.responseText;\n}, (error: XHRResponse) => {\n    throw new Error(error.responseText || getErrorStatusDescription(error.status) || error.toString());\n});\n```\n","publish_time":1626102262055,"_cnpm_publish_time":1626102262055,"dist-tags":{"latest":"0.8.0"}}