{"name":"request-light","version":"0.0.1","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":{"mocha":"^2.4.5","typescript":"^1.8.9"},"dependencies":{"http-proxy-agent":"^0.2.6","https-proxy-agent":"^0.3.5","vscode-nls":"^1.0.4"},"scripts":{"prepublish":"tsc -p ./src","compile":"tsc -p ./src","watch":"tsc -w -p ./src"},"gitHead":"5931367a0fecfe214537ab55f652c50649305f47","homepage":"https://github.com/Microsoft/node-request-light#readme","_id":"request-light@0.0.1","_shasum":"7c07a04d6aefb8c28cb430e1f724829e301443c5","_from":".","_npmVersion":"3.8.0","_nodeVersion":"5.7.0","_npmUser":{"name":"aeschli","email":"martinae@microsoft.com"},"dist":{"shasum":"7c07a04d6aefb8c28cb430e1f724829e301443c5","tarball":"http://registry-npm.ywwl.com/request-light/download/request-light-0.0.1.tgz","integrity":"sha512-Sm3gytc9u/lEH36KfDgegYzfEM6YM1MOB0cFrO+iJ9GtDH95XkqIKo8wRIlvWoYgw9y6OWHoznlBIFZtn/nZkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFfLyzgxtm0KdFPyM5u1TUIh/ye3iQUdJ4DCDSHQhbMmAiEA0Q0i+IMT9G488cJpk9zX3tZf6JkMCkGBEfUL8WKpSus="}],"size":4353,"noattachment":false,"key":"/request-light/-/request-light-0.0.1.tgz"},"maintainers":[{"name":"aeschli","email":"martinae@microsoft.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/request-light-0.0.1.tgz_1460985468530_0.8179566352628171"},"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":1460985469812,"_cnpm_publish_time":1460985469812,"dist-tags":{"latest":"0.8.0"}}