{"name":"request-light","version":"0.5.5","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":"63a76cdde034d9e05ededb96bddba47adbdce319","homepage":"https://github.com/microsoft/node-request-light#readme","_id":"request-light@0.5.5","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"integrity":"sha512-AvjfJuhyT6dYfhtIBF+IpTPQco+Td1QJ6PsIJ5xui110vQ5p9HxHk+m1XJqXazLQT6CxxSx9eNv6R/+fu4bZig==","shasum":"254ab0b38a1db2192170b599b05181934e14932b","tarball":"http://registry-npm.ywwl.com/request-light/download/request-light-0.5.5.tgz","fileCount":7,"unpackedSize":28651,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlMNtCRA9TVsSAnZWagAAzwIP+wSa8mKw/rP38uMxDBzQ\noRs/tWVNXp3zAEamFBrnvPpm0ofHaa3pIy/SpfuamX5wrt0YUl5t6Qmuj9Vp\npofn07EYTG07n6+ilvhHaCRPN7Fo5nsqOfbVzM48OSRsQRHOAGuZtOndm7JN\ns0M/kOzl/pyLX5EypTYW9f57MTIoi+vq1Dt43m0EGrJdBXP0GpCjkm2Wv66L\nzNv2J0p/Q6IoFT7TnrSXvNmCbxwGYU3wzl/hRDIgsSZ5nm3/rSvrz15NRydS\n9P3tVCWFbsMicdNaahU41hh82nT8qb82W1UQ109w1DwthyfyU8lVuU8YIyOH\nugMVbPX/3ZCWBBegJgr/XoVBp+Ic1sAg0ypwyROI+v+WGJ8VWM/j/aep7olN\nh9salC9a+8JizyyH6ds5IuaNMDJU8TztbfCEwM2mqi7qlatzy2G9F98OO7AR\nRXVWbdLSNiYP/ZZAmzCupY65b6HTioY3edbjOu4yim/+y6dze/e+xI9dpHbb\nQJH2bxV4MzD/BRN5PDFO54MmKiJHGscrbaK02qh9XtP9VLHmiwFo0FiXpkV2\ndak3WB3GcFVWHg7brRqArP+7zfZi18GqrU14ElWlLQKHY4Dk34X/HiL+wHoZ\nsAZEsvKfDVw3xiZwOewZ4Emt3f3RinA1ff0+uTSx/RSKkNznE9bUNXgLnwau\noZUe\r\n=H79o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFhw7pUekFYcA28Oyv0pfRIMW5ZIlGhfoykvGA0foG2rAiEArhcqpV5nu+Qz2u8FuM9XuE/UMFaBI69Oys1OpECbLd0="}],"size":10083,"noattachment":false,"key":"/request-light/-/request-light-0.5.5.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.5_1637139309411_0.8497738007054718"},"_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":1637139309583,"_cnpm_publish_time":1637139309583,"dist-tags":{"latest":"0.8.0"}}