{"name":"request-light","version":"0.2.2","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.6.2","@types/node":"7.0.43","@types/mocha":"^2.2.33"},"dependencies":{"http-proxy-agent":"2.0.0","https-proxy-agent":"2.1.1","vscode-nls":"^2.0.2"},"scripts":{"prepublish":"tsc -p ./src","compile":"tsc -p ./src","watch":"tsc -w -p ./src"},"gitHead":"41dbb2d39e2e85e0ea7ceeeec4ad22b25d0ab069","homepage":"https://github.com/Microsoft/node-request-light#readme","_id":"request-light@0.2.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"aeschli","email":"martinae@microsoft.com"},"dist":{"integrity":"sha512-sQx7pzLfXK0JVq+EoHVaSgZgFZsLCrG6GPUcksbu8xJzLyNLh8X/Z5RnsuX6rhAkxBWVM4Nhfhc9uo+fK4a1PA==","shasum":"53e48af32ad1514e45221ea5ece5ce782720f712","tarball":"http://registry-npm.ywwl.com/request-light/download/request-light-0.2.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA0Fjy84RQL9QR+W/PSEcmEO75MtNrl6zV+d1BlL35GPAiEA8DJ92SjscwiqjA3Lu4OtEVSM1+T0B9wJ3C6FfSoDVyA="}],"size":4682,"noattachment":false,"key":"/request-light/-/request-light-0.2.2.tgz"},"maintainers":[{"email":"aweinand@microsoft.com","name":"aweinand"},{"email":"inikolic@microsoft.com","name":"isidor"},{"email":"egamma@microsoft.com","name":"egamma"},{"email":"cdias@microsoft.com","name":"chrisdias"},{"email":"benjpas@microsoft.com","name":"bpasero"},{"email":"alexdima@microsoft.com","name":"alexandrudima"},{"email":"jrieken@microsoft.com","name":"jrieken"},{"email":"dirk.baeumer@gmail.com","name":"dbaeumer"},{"email":"joao.moreno@microsoft.com","name":"joaomoreno.ms"},{"email":"npmjs@microsoft.com","name":"microsoft"},{"email":"martinae@microsoft.com","name":"aeschli"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request-light-0.2.2.tgz_1513847899804_0.4138430787716061"},"directories":{},"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":1513847900716,"_cnpm_publish_time":1513847900716,"dist-tags":{"latest":"0.8.0"}}