{"name":"request-light","version":"0.5.4","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":"693f239566507d994bf59b48e6949710725122eb","homepage":"https://github.com/microsoft/node-request-light#readme","_id":"request-light@0.5.4","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"integrity":"sha512-t3566CMweOFlUk7Y1DJMu5OrtpoZEb6aSTsLQVT3wtrIEJ5NhcY9G/Oqxvjllzl4a15zXfFlcr9q40LbLVQJqw==","shasum":"497a98c6d8ae49536417a5e2d7f383b934f3e38c","tarball":"http://registry-npm.ywwl.com/request-light/download/request-light-0.5.4.tgz","fileCount":7,"unpackedSize":28416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8FbBCRA9TVsSAnZWagAAUScQAJcRq5pY+XmNKX/6DtqN\nv7jijtc85mtxY51U5btR0W0gIhetsnpN1B6TrWJ+ZQ/jy/hMx2RJ0HOlnkSv\nVuXOjfIXY+y0YAJ4aY76dZAdtWYS97hmz7C3c38XqBudZlEbIDkM2Ykz7CqO\nRCjWEi3flOHQFTRtDKGmJfEGOpUKDrTTFJXQ8bfAiCtgX0h9SFRMOEjDGdtl\nzo3BUwFd3rAN75abEuvBs0qutfuLG8vcinwemIp/M5A+g5ZqV7bAHtDLZCyL\nvzXhNN1oBdGeectt+wIaKc1LiJ/DOe4BGHRPNLvwi2yVyvbJ9Dc2Re5C2/a5\nBFn/wLgUTYtuWyTzE549hx8oce9VStgS+N60VwvFEIilZvwikjR/vAdm+cTz\nJlulLoE5qnZSGTmC70dU9eugRzN5kkYZbvieebmGJgrPqkMcvn0Of4El0bFO\nT/CCmJppwmQiZkngQoIw9YxAfrBFNqiIkxa62+AkB8nlQDIQUcifORJTYFiE\newpwt6abwHKG0MkGIKU9ojc4eaDXENJxmY7F888PAuZyozutBI8ZhZ6yHsF+\nfcPR37pBf5bvOKB/qozm+kZZje80dt7arN/r7Kzg7f/79M/8JkU9Yu4Qe8Rk\n8tg29q9cXPrvjgE774gaN+PMBr+TW+Wi+IuU8nbGg6i8J3tgPHp5NMsKl2m4\n1Qq5\r\n=PkmN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFK+qljtQHWKhHtyFs4EO3+6mX5QLBHl4MhyQq/Mwg4QAiEA7Z87THA3GLIYfrbd84HcJF3lMMv+HJLXDfvnCgbEPK8="}],"size":10013,"noattachment":false,"key":"/request-light/-/request-light-0.5.4.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.4_1626363585692_0.49906925560755755"},"_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":1626363585885,"_cnpm_publish_time":1626363585885,"dist-tags":{"latest":"0.8.0"}}