{"name":"request-light","version":"0.2.3","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":"^2.8.3","@types/node":"7.0.43"},"dependencies":{"http-proxy-agent":"^2.1.0","https-proxy-agent":"^2.2.1","vscode-nls":"^3.2.2"},"scripts":{"prepublish":"tsc -p ./src","compile":"tsc -p ./src","watch":"tsc -w -p ./src"},"gitHead":"8dbf38e766b40abb6aebbcdac7cc89bda7495e12","homepage":"https://github.com/Microsoft/node-request-light#readme","_id":"request-light@0.2.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"aeschli","email":"martinae@microsoft.com"},"dist":{"integrity":"sha512-KUQTybUtB/WZl7wQGAKenEJkuUX1/DyYX6PJpNEaBVyxE4v6U4Q5P65cmjdKglzcNTGIPZG857JMEAiMWVsoIw==","shasum":"a18635ec6dd92f8705c019c42ef645f684d94f7e","tarball":"http://registry-npm.ywwl.com/request-light/download/request-light-0.2.3.tgz","fileCount":8,"unpackedSize":14127,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDrisCRA9TVsSAnZWagAAy1sP/1QyBDwtd3Q+YrxF83ia\n8TYlNFaPAh+Ya3i5mzDAWnQPTQW/eETswi7k05M5gnDSz7LpuQwXAlIZP+kX\nDFwQhaYSWoceKZweSZEvpnYA3eu2PJ6ww8HEVhUqYo8U7yyRMO7S0xvsk95t\nQqMHncuQEsyshv6TIghG+z5VdnI5fPawpXBb/qz3LI6wqTMdr5pMFOn0so4v\n+xagdjYNAOVhCgEo2leyUpRB8aYzK/MT53BLY7s5+vHTLNpONmTF4WUV89Ic\nzDkWhNJOf8Hr6CGB+WAMttTQxJQt5M7F9JtyhYTurHiJaKSkxFvdF55y7mfF\nGg6Qo2sJf6wH8A0HTqMPFLpD8EGEIpwoO8z+1f5zPi4aLCoSNtiSqieFs5ra\ns19zenIaJXvliO9rGSEllAAc8TAw12R7iHGiPjqmUa+n5mhdSoANK7MTVpeR\nE7By8A0cFA1IoCGpeGa5rOliD4OcVyOWcPSqLHnPjs29jpmPhZCIurFePDs7\nbJG29QvIY7jRrW+lMs8Qu/eiu7NasLSE5n0jCC4EZFG/YW9gawbZY9FHalWc\ntbLMRcr1IlwglNdTDU1FIaXFYfsoOhvUMg5Aaf9O4EyCeuk3MtpTeRqF5Orp\naJ/vAL3eDLYuZrCO5LV1L+ADB1sx2BXJTTRDE3l2Gpr0G3/vu9rWJkZa/Slg\nvAtr\r\n=ANHV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDmVGWCpMgNBqnjLDJZ6jrKXUXCZOBVq8Fcmh/mvzkd3AiEAjUut8HKawoYj6/HIoqb9RCH3wX3Osi2YDvcRkqgYQks="}],"size":4672,"noattachment":false,"key":"/request-light/-/request-light-0.2.3.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.2.3_1527691436299_0.630586617094339"},"_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":1527691436381,"_cnpm_publish_time":1527691436381,"dist-tags":{"latest":"0.8.0"}}