{"name":"request-light","version":"0.5.7","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":{"http-proxy-agent":"^5.0.0","https-proxy-agent":"^5.0.0","vscode-nls":"^5.0.0","typescript":"^4.5.4","@types/node":"13.7.6","rimraf":"^3.0.2","ts-loader":"^9.2.6","webpack":"^5.65.0","webpack-cli":"^4.9.1","ava":"^4.0.0","proxy":"^1.0.2"},"scripts":{"compile":"webpack","watch":"webpack --watch","package":"webpack --mode production --devtool hidden-source-map","prepublishOnly":"npm run clean && npm run package && tsc -p ./src/test/ && ava ./lib/test/test.js","clean":"rimraf lib","postversion":"git push && git push --tags","test":"npm run compile && tsc -p ./src/test/ && ava ./lib/test/test.js"},"gitHead":"17b49099daa25fffb8b980e964f961dc5f4507ce","homepage":"https://github.com/microsoft/node-request-light#readme","_id":"request-light@0.5.7","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"integrity":"sha512-i/wKzvcx7Er8tZnvqSxWuNO5ZGggu2UgZAqj/RyZ0si7lBTXL7kZiI/dWxzxnQjaY7s5HEy1qK21Do4Ncr6cVw==","shasum":"1c448c22153b55d2cd278eb414df24a5ad6e6d5e","tarball":"http://registry-npm.ywwl.com/request-light/download/request-light-0.5.7.tgz","fileCount":7,"unpackedSize":30102,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2D7gCRA9TVsSAnZWagAAAToQAIEsJWwX+wZyMbIuKX4W\n+ErIh3MlcrYujd9QeVLzg/NqWA5wBAXZOpa97sZ+lyQkm6+sLrbTJzJCBKKx\nmF9zvmuGGa1B6Didq38Ia44H8sMqz5hucd1epqIXtx3VcGBh6Qk6fvs3Pmc4\nEX19Z+JTn4xD0+szzyHeVtSe3D+KwJWGoXCPW79YleCJULKv/M5rhT5UtwZK\neVq2pGzduVFh4gzJVU1YphEXNTikZcSFXX9R5CmfQ1kU2RxT1ro5TeYsyQPC\nQPZu2CfH6/6lYEcdU1HBVCpEENO/1bkvBSWIJjee7/b/a+Ek/7lOvbuxeqCk\njJITF0a9ab3NdpUAPT2vuTZQ0Goh5pBag77b19SUOjvlDi8HhP4PttiMnyNV\nfAy550QPIj3vl+3MilLMgXd/+Sos+eUyzDOAE1V1meewfqNzzAu49bMzexcT\n835cy9Y11i70acgmZ0BFw4O8gfO9DfDBIEzve1CwuhMR4wKY+hg7IqE02Dvm\nXwiD0EANhLiNzzugaUEAAaeswLsBo01wQpMsbuNX8wE5CpjhqLGXgpAe9uQn\n1bc9JcnBf0QECBlpgWYxIxe1SvLrwvhDfQ2dtSkQQiUX2S9kQS4OnkZFbmnx\nB46asaL3KLKIHSbPI8f2j76PX5oijROl7i01Z5gp1pYf7ohPRipvnwnnMk8Z\nWFyD\r\n=UFgN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCutOo7mcZs1IHoz373iCNxQNDa5XfE47LH6sYA4RdZfQIhALVBUZN/4gVjK6/fwepx/WkB/k5Ya7Ss8YHrcGNW/mce"}],"size":10570,"noattachment":false,"key":"/request-light/-/request-light-0.5.7.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.7_1641561824306_0.4912916532101763"},"_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":1641561824475,"_cnpm_publish_time":1641561824475,"dist-tags":{"latest":"0.8.0"}}