{"name":"request-light","version":"0.2.5","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","rimraf":"^3.0.0"},"dependencies":{"http-proxy-agent":"^2.1.0","https-proxy-agent":"^2.2.3","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":"463931912e9cd16e14ab7bc819ef0fc4201d3526","homepage":"https://github.com/microsoft/node-request-light#readme","_id":"request-light@0.2.5","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"aeschli","email":"martinae@microsoft.com"},"dist":{"integrity":"sha512-eBEh+GzJAftUnex6tcL6eV2JCifY0+sZMIUpUPOVXbs2nV5hla4ZMmO3icYKGuGVuQ2zHE9evh4OrRcH4iyYYw==","shasum":"38a3da7b2e56f7af8cbba57e8a94930ee2380746","tarball":"http://registry-npm.ywwl.com/request-light/download/request-light-0.2.5.tgz","fileCount":10,"unpackedSize":16865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduepECRA9TVsSAnZWagAAYh4P/iFqgMhon4MtPPD2D2aC\nk2Y1lXZ0WduDGrM4Q4pDnhOU51BNMsOKUkD1Qa+eLBXIVRoxYpgF+lMfqviF\nRp3xTdZ/ATPkL5IzLzgm0+zyEUyyCGjH85GALQgnYqCI6S47LOplW3apcMiS\n0THKZF2+ot4aHHe7FzrqcOg6In4CJ7tloukNX/usiSZ4Q/KbRHOfpR+k9d1r\nNY/BQ+Bjx3+1uZs3pYjre+bxtoaanlWnvqHhYisGKAWD8XCXWpziOtKvGelT\nwyBMVs1u3G387DJEJKdm9OEsiUueikbVK+ralruJuSHnu2YZ2vAaKct5Gi2w\neuX/zCslWZMF6tsJtXEaYuLuD9t4EY6JgOidhisye1yreYDl9S1RU9Mn3Kf3\nYypgO4n0UxD7K2UJYebGFs0siO/6cOfjz0NFmoNtyCRAlu1ZUKeHZ90vM9/O\nJxEfBPq4dnrFHfiFDiO4GtNx0G4kTrack4LsQotzRDVmBhDM68WYMl44XiY+\nQqFw2XoJVQZ+Fw0FxT8OEiihNw/x5g9KxMjkTyffgYU69DSWP3EgkCRyzpJ7\nI3JsPbsbHBoQMenFQKAO77aJFeKOgHMphZ5nujQRy4XwI/pXbCqtMGswzUMs\n2gms06efnlg3TrADsF1O/qeWg3HC13gbqfQjj4js7JCNbZEUIyvGeAZ9QNEQ\neas3\r\n=9A6H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpTqSfDcrRh7nzuGpFHW52oF5Jx/ai+joQ9p8MTKMy6AIhAPdVLlZxjfu4QlHTbvjh8mm7Zsrolca3k3Uo8mIFfNN+"}],"size":5568,"noattachment":false,"key":"/request-light/-/request-light-0.2.5.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.5_1572465219666_0.2839448013495858"},"_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":1572465219815,"_cnpm_publish_time":1572465219815,"dist-tags":{"latest":"0.8.0"}}