{"name":"request-light","version":"0.3.0","description":"Lightweight request library. Promise based, with proxy support.","main":"./lib/main.js","typings":"./lib/main","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":"^3.8.2","@types/node":"13.7.6","rimraf":"^3.0.2"},"dependencies":{"http-proxy-agent":"^2.1.0","https-proxy-agent":"^2.2.4","vscode-nls":"^4.1.1"},"scripts":{"prepublishOnly":"npm run clean && npm run compile && npm run remove-sourcemap-refs","compile":"tsc -p ./src","watch":"tsc -w -p ./src","clean":"rimraf lib","remove-sourcemap-refs":"node ./build/remove-sourcemap-refs.js","postversion":"git push && git push --tags"},"gitHead":"27820a57db434e4e31e1cf43e77867859fa7d1cb","homepage":"https://github.com/microsoft/node-request-light#readme","_id":"request-light@0.3.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"aeschli","email":"martinae@microsoft.com"},"dist":{"integrity":"sha512-xlVlZVT0ZvCT+c3zm3SjeFCzchoQxsUUmx5fkal0I6RIDJK+lmb1UYyKJ7WM4dTfnzHP4ElWwAf8Dli8c0/tVA==","shasum":"04daa783e7f0a70392328dda4b546f3e27845f2d","tarball":"http://registry-npm.ywwl.com/request-light/download/request-light-0.3.0.tgz","fileCount":10,"unpackedSize":17128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWShECRA9TVsSAnZWagAAzfUP/2iJ2dBet0Z6MbCa2utv\nHWSfHpZ4nhjgZtzewCa1kCs+4nU0msDj4vUzmJQc/Nx7viVaOvyr21K6u50N\nKSbmfEEBqM/wLB1MZjNTH4wuh9Kiu83PHSKrjHuqbaldYCPueecF3/zi18rt\nGn1LnpEKiJDYyaafXWzuvl4vEpJNchnxzJO/mlyF8SdzS1RzCSHYf2WkDY7I\nw6BXCkrxyih6Xt8CXROfgvNhowANGSAeHAtuHwF6oxWHflBIPI8tFeMvawm8\npkuTnf7D1+qYn4p1FOmO81ghY3Au+YfUhFX2PhB1l5vlRwI7tRF3q82dudj4\nQJNgoGU0P2dWgjT/rDOVny8B5FTDk6R9OWRkQimCbRi74ILRE5E/lF1WZQ0h\nLZaeik/oezFiHtYPntkU/wEokk35/Tm6Xm/j35rRFZCBKiv1ms2bfzo6U81U\nfBd4MdegYyCMBwVLirYKCfjXn6xbwDCX+PfAdHLSeoYo1X3I8l9K/c/0EtAW\n8avwOk2X1Vi1EOj/CSJ7TYxnswZcTkHfBw+BFW9E06LT9lgXFibQkv4+VK/i\nbyPg9noeBJ6q0SzqATa1gjH7DGklmyWQBv+45FUmTQwHnpOCbJGvIosPnSPf\nFw444ri4VHXs5zBwR602pnA9YxzfISAuVtprQn9i0679m8ChcntOFTuLiTRz\ns+sD\r\n=yp9L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE1ZRQ9JuBCbV5iS+sYS+IypwGeLgiKh+eRq1LHhvEN0AiEA+Rl2qsXYWSkyRZtrb6ZM+F70DNW1hw2KbEmUJCirtD0="}],"size":5634,"noattachment":false,"key":"/request-light/-/request-light-0.3.0.tgz"},"maintainers":[{"email":"martinae@microsoft.com","name":"aeschli"},{"email":"alexdima@microsoft.com","name":"alexandrudima"},{"email":"aweinand@microsoft.com","name":"aweinand"},{"email":"benjpas@microsoft.com","name":"bpasero"},{"email":"cdias@microsoft.com","name":"chrisdias"},{"email":"dirk.baeumer@gmail.com","name":"dbaeumer"},{"email":"egamma@microsoft.com","name":"egamma"},{"email":"inikolic@microsoft.com","name":"isidor"},{"email":"joao.moreno@microsoft.com","name":"joaomoreno.ms"},{"email":"jrieken@microsoft.com","name":"jrieken"},{"email":"npmjs@microsoft.com","name":"microsoft"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request-light_0.3.0_1582901315922_0.8010047955744599"},"_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":1582901316112,"_cnpm_publish_time":1582901316112,"dist-tags":{"latest":"0.8.0"}}