{"name":"request-light","version":"0.2.4","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":"^4.0.0"},"scripts":{"prepublish":"tsc -p ./src","compile":"tsc -p ./src","watch":"tsc -w -p ./src"},"gitHead":"5b034502091177cc9fb5a0a17d37865e9e4115b9","homepage":"https://github.com/Microsoft/node-request-light#readme","_id":"request-light@0.2.4","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"aeschli","email":"martinae@microsoft.com"},"dist":{"integrity":"sha512-pM9Fq5jRnSb+82V7M97rp8FE9/YNeP2L9eckB4Szd7lyeclSIx02aIpPO/6e4m6Dy31+FBN/zkFMTd2HkNO3ow==","shasum":"3cea29c126682e6bcadf7915353322eeba01a755","tarball":"http://registry-npm.ywwl.com/request-light/download/request-light-0.2.4.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\nwsFcBAEBCAAQBQJbmje8CRA9TVsSAnZWagAAvkkP/24UImeR9J18ficxQYxP\nJNdc9ZakZ1mvxILkwBMVJEWi//TNXCaLlxhVsZgfZ+aqarQIv9Jxa7txkwjQ\n5sPhB9f9RV4Ku4ZkyNsi2qC17tC71v+Ymcv2A2tBSB/Sw6s+MIir/7PNlkFN\nKDRKDkwF9UYDuam2C3UdGcULdCR7PZuZStlb9YARhAMyElEaJ9LFc0rKKqp+\nbnzrMQsYrN5gOqfhKfucsmDp7qngNUKle1XkQpwnknWSmMkTgshZZ8GWs/n6\nweEVo1T769BgNMqZBtaDOAE5g58NKiEaVK4C5LMm23GP84EzmCF0YFI4XN0Y\nr//8YIQAwRM0eXkZyQS+EJ17AwbJs1poOfi4y6B96gFbMFv2M7g73DdxSM8j\nSv+pXhYEyTVsxIVUwoD9HRNQhbUFOr6ZXTN9Vxrw8Izs3gjVZ9LN/xp3P9Ii\n8Xccf3UAoWd6Oma49D1ShrV1kRnHvUs0G/3nXun7cTAdtLKziQSaChvvhdrT\nG0zce4bvZ/pOU7fFkLiSHZa7ZdHpjlZbTpqPzfJl7wgzUgc85JvXh1AQhvR6\n/5I9AQSYKe1G5ov4LgJXaYE9daUfzX0RSq25dyc3Kg+Ba6GlI7DHVQNYm+66\nV6KcLOtoGJjgJltjxUW4rWPSv2W4a9olz/mjmhFb5gjmUu+gdREXbdjsFoxa\n+5Md\r\n=eQku\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKjOeqrqWG8rDOrknRCbIQpbzu7cWzgUdUWddWEdi5eAiEAgCLpfgPSY/aFIMkt4wN/6RJZ7JLtJ8cmcvgzCtPb8gY="}],"size":4664,"noattachment":false,"key":"/request-light/-/request-light-0.2.4.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.4_1536833468139_0.8406117212476862"},"_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":1536833468230,"_cnpm_publish_time":1536833468230,"dist-tags":{"latest":"0.8.0"}}