{"name":"request-light","version":"0.5.6","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":"^4.0.1","https-proxy-agent":"^5.0.0","vscode-nls":"^5.0.0","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"},"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":"af3a0401701975296fa6782b798e299e3f5a22d5","homepage":"https://github.com/microsoft/node-request-light#readme","_id":"request-light@0.5.6","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"integrity":"sha512-mIfRkYujBF6qQQi+uJGHFzYD2P7WwfIMyJ3/DcTtOFB3iypwIVOXmsr3RMnFwTJRVcYLLZdjkIx43E8Zn2hRng==","shasum":"d36eb9b1e574fed1d261414722261a1148db3c2e","tarball":"http://registry-npm.ywwl.com/request-light/download/request-light-0.5.6.tgz","fileCount":7,"unpackedSize":29416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzeQoCRA9TVsSAnZWagAA88MQAILLk2Yiu7V34W8rX7M1\nbcE0S+OUlWR+MtLwZb91tTcKrMHuX4ucz2tO3erDSk+Kbdo7sPGmfNkrIXle\nw001Yve/aZb11zkSUFVlwebXdCsVl4ZhDt/M2KZgEH4+evaN1sBOVjWPkD/f\nZqT2z7PVZP9cUdQBEo6C42eIFCLm2C+vhcaC4jNw7CJuopvPybyC0gO6Z0LY\n0Y8xsew6YWErHV+54qgoJ+y1AaDyy6LB113LsJ+rKEklD9DgY549rcJ+xXlA\nZYlKa82lTdQWo3KK1UMZ2MKt1ZoK2ikH695eCeAJTJuJpj59x6UoBdueKbCe\nrRaWr18lNFG3d1bv3P/GZQ+VrcMrarhU0oBkCC5uzi8NSKWl6FTOF/MwfxaB\nmKpw8qikmw9L1TNed1by2O4YwxvyZ6Gc+mMhzFhEaJOR4UeqvZQ5zCe1lDaF\nUIkfE8ZDw+kjpIjLN0U0NgU0T15cgzkP3RZ37YxowSjbx/2RcN9QPYx7ZYcU\n70s1ve18xo9ZGPD7PxjLK8RL5OnlonhtAaisXcw77ToqCjYAaLpwtr2zxAi5\nvBSWF14ya0M0i6jkQ9j+YjrRvllw8ftVsbioOi+UIOZIFE7J9es0rVXVKrmG\net/GiS4B6XBQG0ydfrrRcNlJWGVa6ybCqtQvCVXtOS5S/nEc03FRgoOaXn//\nh6FJ\r\n=9Bny\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvchuRV3pZ5Lc8NhB5gfL+7I6aoZPhSkdowl5/4kdExgIgNEIYsmIBGVA1UKzNbk79x75c5qwONCogZvhyLzA3V38="}],"size":10353,"noattachment":false,"key":"/request-light/-/request-light-0.5.6.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.6_1640883240314_0.6044663881533667"},"_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":1640883240471,"_cnpm_publish_time":1640883240471,"dist-tags":{"latest":"0.8.0"}}