{"_id":"small-request","_rev":"8-f0e07d76c6481a3d9f1af77f25e8c66c","name":"small-request","description":"A thin Promise wrapper around Node.js http/https request functions","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"small-request","version":"1.0.0","description":"A thin Promise wrapper around Node.js http/https request functions","main":"./lib/index.js","scripts":{"test":"tap ./lib/*.test.*js --coverage","cover":"tap --coverage-report=lcov"},"repository":{"type":"git","url":"git+https://github.com/tonybadguy/small-request.git"},"keywords":["promise","request","http","https"],"author":{"name":"Tony Liu"},"license":"MIT","dependencies":{"request-function":"^2.0.0"},"devDependencies":{"proxyquire":"^1.7.10","tap":"^7.1.2"},"nyc":{"exclude":["lib/*.test.*js"]},"gitHead":"2de5fe3b09e20df642d3cd9926f39af7955494fe","bugs":{"url":"https://github.com/tonybadguy/small-request/issues"},"homepage":"https://github.com/tonybadguy/small-request#readme","_id":"small-request@1.0.0","_shasum":"af8c12df0e168374efaa53c0572a5eea6a783995","_from":".","_npmVersion":"3.10.5","_nodeVersion":"4.6.0","_npmUser":{"name":"tonybadguy","email":"tonybadguy+npm@gmail.com"},"dist":{"shasum":"af8c12df0e168374efaa53c0572a5eea6a783995","tarball":"https://registry.npmjs.org/small-request/-/small-request-1.0.0.tgz","integrity":"sha512-oaExPfZPNXFbs8qdgdJLFFom4Dfp6bZSXfEjK+6ixAfmtr0WJuIqkI1sV7xyPhsC6MVdRZL5QOUqH5HBXXIhwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaU7sJBRYFB4u8wppu5aHSEUoeuFO3eM97FNt24lhYuwIgSFnhuNy+ZQmZYN2sCDYxS9gTFr8fYLdRqzrTER7xPfE="}]},"maintainers":[{"name":"tonybadguy","email":"tonybadguy+npm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/small-request-1.0.0.tgz_1477284250916_0.6813930864445865"},"directories":{}},"2.0.0":{"name":"small-request","version":"2.0.0","description":"A thin Promise wrapper around Node.js http/https request functions","main":"./lib/index.js","scripts":{"test":"tap ./lib/*.test.*js --coverage","cover":"tap --coverage-report=lcov"},"repository":{"type":"git","url":"git+https://github.com/tonybadguy/small-request.git"},"keywords":["promise","request","http","https"],"author":{"name":"Tony Liu"},"license":"MIT","dependencies":{"request-function":"^2.0.0"},"devDependencies":{"proxyquire":"^1.7.10","tap":"^7.1.2"},"nyc":{"exclude":["lib/*.test.*js"]},"gitHead":"55ffdbe25a4ce0bf09ecc277c502e0a5d02f6c80","bugs":{"url":"https://github.com/tonybadguy/small-request/issues"},"homepage":"https://github.com/tonybadguy/small-request#readme","_id":"small-request@2.0.0","_shasum":"f3f75c4162a82af8cbc9854f42b5d62e2b703112","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"tonybadguy","email":"tonybadguy+npm@gmail.com"},"dist":{"shasum":"f3f75c4162a82af8cbc9854f42b5d62e2b703112","tarball":"https://registry.npmjs.org/small-request/-/small-request-2.0.0.tgz","integrity":"sha512-dKa42ULWD+pAih3di9qF+xfhZ4ZibaajhDDSVovQgLiYPSsRLWqWPIuA9XSo7fdoldsTfyKK5BZG+Whi5WPjdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGyB1uKCJgbmC9rm11iLi1ABVknf+amNG/U2ad8vX3JQAiEA8DNzeGUZY2UgN6o0YgdmOeu26dRZ20VSoycwajfRQ5Y="}]},"maintainers":[{"name":"tonybadguy","email":"tonybadguy+npm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/small-request-2.0.0.tgz_1477287347534_0.2758392777759582"},"directories":{}},"2.0.1":{"name":"small-request","version":"2.0.1","description":"A thin Promise wrapper around Node.js http/https request functions","main":"./lib/index.js","scripts":{"test":"tap ./lib/*.test.*js --coverage","cover":"tap --coverage-report=lcov"},"repository":{"type":"git","url":"git+https://github.com/tonybadguy/small-request.git"},"keywords":["promise","request","http","https"],"author":{"name":"Tony Liu"},"license":"MIT","dependencies":{"request-function":"^2.0.0"},"devDependencies":{"proxyquire":"^1.7.10","tap":"^7.1.2"},"nyc":{"exclude":["lib/*.test.*js"]},"gitHead":"46bd52e9f4867c05d64d8ca412057f5e476bfc06","bugs":{"url":"https://github.com/tonybadguy/small-request/issues"},"homepage":"https://github.com/tonybadguy/small-request#readme","_id":"small-request@2.0.1","_shasum":"1852af68b20f9b80c36d44415c975a54c1066562","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"tonybadguy","email":"tonybadguy+npm@gmail.com"},"dist":{"shasum":"1852af68b20f9b80c36d44415c975a54c1066562","tarball":"https://registry.npmjs.org/small-request/-/small-request-2.0.1.tgz","integrity":"sha512-4IDtNFDZu34yOaPyCCytElhgH1RlL6YwLe1OQF4guE77LmoMQYH1swilhLzAJpqt8apdyPQGzwhqinvBj5WsVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/HZxA4sEaB9E58MeDTEEzDrnahADfkVvYvJCqV260qAiAu4YgvhYTru+Psb5LALAVolkeT++pnczRHsqe/th6Ibw=="}]},"maintainers":[{"name":"tonybadguy","email":"tonybadguy+npm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/small-request-2.0.1.tgz_1477287622125_0.5581105728633702"},"directories":{}},"2.0.2":{"name":"small-request","version":"2.0.2","description":"A thin Promise wrapper around Node.js http/https request functions","main":"./lib/index.js","scripts":{"test":"tap ./lib/*.test.*js --coverage","cover":"tap --coverage-report=lcov"},"repository":{"type":"git","url":"git+https://github.com/tonybadguy/small-request.git"},"keywords":["promise","request","http","https"],"author":{"name":"Tony Liu"},"license":"MIT","dependencies":{"request-function":"^2.0.0"},"devDependencies":{"proxyquire":"^1.7.10","tap":"^7.1.2"},"nyc":{"exclude":["lib/*.test.*js"]},"gitHead":"df345a126daf36e59a7587e5f3e0b3fc6e904e8a","bugs":{"url":"https://github.com/tonybadguy/small-request/issues"},"homepage":"https://github.com/tonybadguy/small-request#readme","_id":"small-request@2.0.2","_shasum":"a44ba8d86fa2de24c168085268c567f885030653","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"tonybadguy","email":"tonybadguy+npm@gmail.com"},"dist":{"shasum":"a44ba8d86fa2de24c168085268c567f885030653","tarball":"https://registry.npmjs.org/small-request/-/small-request-2.0.2.tgz","integrity":"sha512-HXFmKrqPCOX52gB+DkacJLQryCUkMsBRLUOd/qvl2SpNNvDqS+EK7DSaHew5ELXqNamIU1ZOWob3ZJ1OMXk73A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDDM8YSnkZ8euTd3ccw30ENQlom7XzZjbJKfl0bpnQYQIgQnnmznME08HMsrtfk21WTwGJOquXK7ESsfE7KBMXtP4="}]},"maintainers":[{"name":"tonybadguy","email":"tonybadguy+npm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/small-request-2.0.2.tgz_1477288126743_0.726224078098312"},"directories":{}},"2.1.0":{"name":"small-request","version":"2.1.0","description":"A thin Promise wrapper around Node.js http/https request functions","main":"./lib/index.js","scripts":{"test":"tap ./lib/*.test.*js --coverage","cover":"tap --coverage-report=lcov"},"repository":{"type":"git","url":"git+https://github.com/tonybadguy/small-request.git"},"keywords":["promise","request","http","https"],"author":{"name":"Tony Liu"},"license":"MIT","dependencies":{"request-function":"^2.0.0"},"devDependencies":{"proxyquire":"^1.7.10","tap":"^7.1.2"},"nyc":{"exclude":["lib/*.test.*js"]},"gitHead":"848b7bc9a0c55f22dc04e6b558efa2efad21df05","bugs":{"url":"https://github.com/tonybadguy/small-request/issues"},"homepage":"https://github.com/tonybadguy/small-request#readme","_id":"small-request@2.1.0","_shasum":"b1015a5047ca140b0a23ab2e0403bbe8d136beb3","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.11.5","_npmUser":{"name":"tonybadguy","email":"tonybadguy+npm@gmail.com"},"dist":{"shasum":"b1015a5047ca140b0a23ab2e0403bbe8d136beb3","tarball":"https://registry.npmjs.org/small-request/-/small-request-2.1.0.tgz","integrity":"sha512-tQlteNci7wsIsmt7KoyZj0izeuY718NBeKVhJdWxTmQHKsJp4INUhWLTJ000EzNu9p41TqbGPOrSl0wroK581Q==","fileCount":13,"unpackedSize":14542,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbnXxKCRA9TVsSAnZWagAAWLQQAIspmctqoccKh1ahW4V6\nYX6UokXlmqJ1cjejvcpq/yZZeRKIKKrG4UpAuu13a76VxDbjehMYcpG5BP0f\nXDbJZpL+Wewe0jbo5sAyBJd7qL5of4yommUKuG2+LLLZ7GG4YcDYkhdU9WEF\nwvhVdWwelO80G1vX+GLAVdw+mBllDI1WCGKnrQoZxzKpqmCK1Q82iHtJBIF4\nV0IF3Mh69nKIixJnG2AOmLPXz3FrYlQhdsvVvWMEO2KtH3HocY7yVMYF6zGg\nB+SdMOJC1L8DxrSEjjhV9LlprMDnV0kjuZiX3wQXA37pbR12MD46sVDgGj9F\nc39+TktW3NcEO7WxwbNUGYguDdlgQDrjpsY/9RJZ2HLmFYTSKgSNcWF7miHk\njK2yG1znpj0//RXUAx+OTiWLTeuEjh09raguQKWG4JR45nF4xFvQIYczttip\n3XHmJJq1n2ZK+bVJp4k6lc3lU18ZP8t63LUQuGyLU/bsqZsI2IyhDXMz1t8e\nc+CyOcAnPjT/fF6FEUkXLtTYdpgNX8zywIO8TaIrqze1LnsHjmZIi0DVbu1D\nYC2duA9vbf7kWV7ktnJTEGWz6mkbxQd26LMMzTfmxK1NG/I6lLVgKORjSITR\nTaUUGL85tJb4blUl4KfHMbEdAEkeU0JD5oXCU2rqzoQLryHqggFJr+4ZTNfJ\nxqpR\r\n=P2MY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEqlKBLknVkaYzAS5imNILM3etQ5vJ7Q8aTHBkF77IpCAiB1MziJCS1ttWUhjCMCglcuKpx0F2oSPj0R/p4KTjTJmQ=="}]},"maintainers":[{"name":"tonybadguy","email":"tonybadguy+npm@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/small-request_2.1.0_1537047625875_0.29936536798981805"},"_hasShrinkwrap":false}},"readme":"# small-request\n\n[![npm version](https://badge.fury.io/js/small-request.svg)](https://badge.fury.io/js/small-request) [![Build Status](https://travis-ci.org/tonybadguy/small-request.svg?branch=master)](https://travis-ci.org/tonybadguy/small-request) [![codecov](https://codecov.io/gh/tonybadguy/small-request/branch/master/graph/badge.svg)](https://codecov.io/gh/tonybadguy/small-request)\n\nThis Node.js module is a thin wrapper around the Node.js http/https request functions that provides:\n* A Promise interface\n* Handling of response chunking\n* Auto-selection of the http/https request function\n\nThe promise is resolved when:\n* A response is received from the server regardless of status code\n\nThe promise is rejected when:\n* Any other exception is encountered\n\n## Example usage:\n\n```\nconst request = require('small-request');\n\nrequest.send({\n  url: 'https://httpbin.org/get'\n}).then(response => {\n  console.log(response.body);\n});\n```\n\n## RequestModel\nThe ```request.send(requestModel)``` function takes in a requestModel object. This object is an extended version of the Node.js [http.request options object](https://nodejs.org/api/http.html#http_http_request_options_callback). Its extended fields are:\n* url (string)\n* body (string)\n* socketTimeout (number in milliseconds)\n\nIf the original http.request option field values conflict with the extended field values, then the original field values take precedence.\n\n## ResponseModel\nThe promise returned by request.send() resolves to an object with the following fields:\n* body (string)\n* headers (object)\n* statusCode (number)\n","maintainers":[{"name":"tonybadguy","email":"tonybadguy+npm@gmail.com"}],"time":{"modified":"2022-06-26T21:15:14.791Z","created":"2016-10-24T04:44:13.806Z","1.0.0":"2016-10-24T04:44:13.806Z","2.0.0":"2016-10-24T05:35:49.636Z","2.0.1":"2016-10-24T05:40:24.197Z","2.0.2":"2016-10-24T05:48:48.104Z","2.1.0":"2018-09-15T21:40:26.057Z"},"homepage":"https://github.com/tonybadguy/small-request#readme","keywords":["promise","request","http","https"],"repository":{"type":"git","url":"git+https://github.com/tonybadguy/small-request.git"},"author":{"name":"Tony Liu"},"bugs":{"url":"https://github.com/tonybadguy/small-request/issues"},"license":"MIT","readmeFilename":"README.md"}