{"name":"request-light","version":"0.8.0","description":"Lightweight request library. Promise based, with proxy support.","main":"./lib/node/main.js","browser":{"./lib/node/main.js":"./lib/browser/main.js"},"typings":"./api","exports":{".":{"types":"./api.d.ts","browser":"./lib/browser/main.js","default":"./lib/node/main.js"}},"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":{"http-proxy-agent":"^7.0.2","https-proxy-agent":"^7.0.5","@vscode/l10n":"^0.0.18","typescript":"^5.5.2","@types/node":"18.x","vscode-jsonrpc":"^8.2.1","rimraf":"^5.0.7","ts-loader":"^9.5.1","webpack":"^5.92.1","webpack-cli":"^5.1.4","ava":"^6.1.3","proxy":"^2.2.0"},"scripts":{"compile":"webpack","watch":"webpack --watch","bundle":"webpack --mode production --devtool hidden-source-map","prepack":"npm run clean && npm run bundle && tsc -p ./src/test/ && ava ./lib/test/test.js","clean":"rimraf lib","test":"npm run compile && tsc -p ./src/test/ && ava ./lib/test/test.js"},"_id":"request-light@0.8.0","homepage":"https://github.com/microsoft/node-request-light#readme","_integrity":"sha512-bH6E4PMmsEXYrLX6Kr1vu+xI3HproB1vECAwaPSJeroLE1kpWE3HR27uB4icx+6YORu1ajqBJXxuedv8ZQg5Lw==","_resolved":"/mnt/vss/_work/1/request-light/request-light-0.8.0.tgz","_from":"file:request-light-0.8.0.tgz","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-bH6E4PMmsEXYrLX6Kr1vu+xI3HproB1vECAwaPSJeroLE1kpWE3HR27uB4icx+6YORu1ajqBJXxuedv8ZQg5Lw==","shasum":"6ec01e4b526638358c2c6353efa1c6aaf057dfa0","tarball":"http://registry-npm.ywwl.com/request-light/download/request-light-0.8.0.tgz","fileCount":9,"unpackedSize":31942,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYcVDdRSyeG9lMPWYDeGOvHBaFSThDQRqtqqZexLklcwIhALUn501pzuaWhrqZ3JB25gwcRiksJ+tkF6nl8DQC3R+V"}],"size":11287,"noattachment":false,"key":"/request-light/-/request-light-0.8.0.tgz"},"_npmUser":{"name":"vscode-bot","email":"vscode-bot-npm@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request-light_0.8.0_1719928515924_0.357030952025698"},"_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":1719928516142,"maintainers":[{"name":"alexandrudima","email":"alexdima@microsoft.com"},{"name":"joaomoreno.ms","email":"joao.moreno@microsoft.com"},{"name":"kaimaetzel","email":"kamaet@microsoft.com"},{"name":"sbatten","email":"steven.m.batten@outlook.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"lszomoru","email":"lszomoru@microsoft.com"},{"name":"vscode-bot","email":"vscode-bot-npm@microsoft.com"}],"_cnpm_publish_time":1719928516142,"dist-tags":{"latest":"0.8.0"}}