{"_id":"request-sync","_rev":"1070286","name":"request-sync","description":"Because sometimes you want your web requests to be synchronous","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"time":{"modified":"2024-10-04T00:43:57.000Z","created":"2014-01-12T22:17:02.152Z","1.0.0":"2014-09-29T13:07:02.874Z","0.0.7":"2014-09-29T13:04:13.982Z","0.0.6":"2014-09-29T12:52:21.872Z","0.0.5":"2014-01-28T17:31:06.932Z","0.0.4":"2014-01-19T01:11:48.064Z","0.0.3":"2014-01-12T23:03:10.092Z","0.0.2":"2014-01-12T22:24:33.306Z","0.0.1":"2014-01-12T22:17:02.152Z"},"users":{"brandonb927":true,"paulomcnally":true},"author":{"name":"ForbesLindesay"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/request-sync.git"},"versions":{"1.0.0":{"name":"request-sync","version":"1.0.0","description":"Because sometimes you want your web requests to be synchronous","keywords":[],"dependencies":{"qs":"^2.2.4","http-sync-win":"^0.0.7","http-sync":"^0.0.5"},"optionalDependencies":{"http-sync":"^0.0.5"},"devDependencies":{"request":"^2.44.0","concat-stream":"^1.4.1","promise":"^5.0.0","bash-color":"^0.0.3"},"scripts":{"test":"node test/index.js"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/request-sync.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"08b954c20e62251d26fe13e0e19ecc3c830f206d","bugs":{"url":"https://github.com/ForbesLindesay/request-sync/issues"},"homepage":"https://github.com/ForbesLindesay/request-sync","_id":"request-sync@1.0.0","_shasum":"8eb6d90cab6fbca59e2b0ea5afbc050421c5eeec","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"forbeslindesay","email":"forbes@lindeay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"8eb6d90cab6fbca59e2b0ea5afbc050421c5eeec","tarball":"http://registry-npm.ywwl.com/request-sync/download/request-sync-1.0.0.tgz","integrity":"sha512-qHwRJrkqmhA6horRTThBwGc/a6/7b/FfwgQ5jgK7s7Hi/bvbYULmZP7W3kEV0Com7ugl92mLJimsanWAp7yDUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCk/aBjrpPG3PSLc4l/Lg0VzyTw58HtJdv/ZViZ+PDGQIgOYHwVRrMy16DVzPPC0FzDTRqr16MJVXWOOxxbxEiQqw="}],"size":5274,"noattachment":false,"key":"/request-sync/-/request-sync-1.0.0.tgz"},"deprecated":"Use sync-request instead, it is way more awesome.","directories":{},"publish_time":1411996022874,"_cnpm_publish_time":1411996022874},"0.0.7":{"name":"request-sync","version":"0.0.7","description":"Because sometimes you want your web requests to be synchronous","keywords":[],"dependencies":{"qs":"^2.2.4","http-sync-win":"^0.0.7","http-sync":"^0.0.5"},"optionalDependencies":{"http-sync":"^0.0.5"},"devDependencies":{"request":"^2.44.0","concat-stream":"^1.4.1","promise":"^5.0.0","bash-color":"^0.0.3"},"scripts":{"test":"node test/index.js"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/request-sync.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"30c984c11eed725f3a1f767f48c3df8d4d2f413d","bugs":{"url":"https://github.com/ForbesLindesay/request-sync/issues"},"homepage":"https://github.com/ForbesLindesay/request-sync","_id":"request-sync@0.0.7","_shasum":"9c1ce31fff7ea0897a550ab550ac8e025e986e34","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"forbeslindesay","email":"forbes@lindeay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"9c1ce31fff7ea0897a550ab550ac8e025e986e34","tarball":"http://registry-npm.ywwl.com/request-sync/download/request-sync-0.0.7.tgz","integrity":"sha512-UjyiFTpRAibtGiBHfK+kiUhB4hh5zL08C0SGdUQgX4Ul6jzwCOqCrIwiqnXSw/3+Q/IiKhzNf8CcN6Pi913MbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFxYe5gj6QooZ5U1Po/bsghi+kVzH9M8sG2HMWrRMo6rAiAmqZObvJHW+ZODReQP6bYMrN0QjBHCQBkvBcoRfmRUSQ=="}],"size":5217,"noattachment":false,"key":"/request-sync/-/request-sync-0.0.7.tgz"},"directories":{},"publish_time":1411995853982,"_cnpm_publish_time":1411995853982},"0.0.6":{"name":"request-sync","version":"0.0.6","description":"Because sometimes you want your web requests to be synchronous","keywords":[],"dependencies":{"qs":"1.2.1","http-sync-win":"0.0.7","http-sync":"0.0.4"},"optionalDependencies":{"http-sync":"0.0.4"},"devDependencies":{"request":"~2.31.0","concat-stream":"~1.4.1","promise":"~3.2.0","bash-color":"0.0.3"},"scripts":{"test":"node test/index.js"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/request-sync.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"fd11988c5f2b4d4780ad55e8ca8c07f3fd873bb4","bugs":{"url":"https://github.com/ForbesLindesay/request-sync/issues"},"homepage":"https://github.com/ForbesLindesay/request-sync","_id":"request-sync@0.0.6","_shasum":"59c83e9c336cc6014fed7007930eda01381c4674","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"forbeslindesay","email":"forbes@lindeay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"59c83e9c336cc6014fed7007930eda01381c4674","tarball":"http://registry-npm.ywwl.com/request-sync/download/request-sync-0.0.6.tgz","integrity":"sha512-WI3RA5i3KgeLnW9W6M8Ta7q9+/ir0Nrd+G6503PC2QspLY635eZhHQUgm5Wgqo/bgK59UCJ6Xl6WlRKOgwR3QA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbuJXJNVeJTZrACumzCYkEVwjDJ3iaroQrp/0IpIbIpAIgIG8G48j7pMzfqz6YZMsKUQLdpvLGVz8PB8Y0WlrwEsc="}],"size":5204,"noattachment":false,"key":"/request-sync/-/request-sync-0.0.6.tgz"},"directories":{},"publish_time":1411995141872,"_cnpm_publish_time":1411995141872},"0.0.5":{"name":"request-sync","version":"0.0.5","description":"Because sometimes you want your web requests to be synchronous","keywords":[],"dependencies":{"qs":"0.6.6","http-sync-win":"0.0.7","http-sync":"0.0.4"},"optionalDependencies":{"http-sync":"0.0.4"},"devDependencies":{"request":"~2.31.0","concat-stream":"~1.4.1","promise":"~3.2.0","bash-color":"0.0.3"},"scripts":{"test":"node test/index.js"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/request-sync.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","bugs":{"url":"https://github.com/ForbesLindesay/request-sync/issues"},"homepage":"https://github.com/ForbesLindesay/request-sync","_id":"request-sync@0.0.5","dist":{"shasum":"36e9360b6558eb3cde5db11217f7a9ea7ed00a4f","tarball":"http://registry-npm.ywwl.com/request-sync/download/request-sync-0.0.5.tgz","integrity":"sha512-5m5sjKi380X039K5caGg5FZ2115ASceyFN4K3yYJfPjOU1diCCuoVluyHXP/WJY5rXwQrZgMbF6HfxPnBzG48A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFuQowTPQyfSxFc1dvIZ9gwIyXuZorDUDoV5/RhNa3cAiBx16wSOSa+FglqhQCOkscQwVXhZN4ha7Gxc5Kmlodmtw=="}],"size":5051,"noattachment":false,"key":"/request-sync/-/request-sync-0.0.5.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"forbeslindesay","email":"forbes@lindeay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1390930266932,"_cnpm_publish_time":1390930266932},"0.0.4":{"name":"request-sync","version":"0.0.4","description":"Because sometimes you want your web requests to be synchronous","keywords":[],"dependencies":{"qs":"0.6.6","http-sync-win":"0.0.6","http-sync":"0.0.4"},"optionalDependencies":{"http-sync":"0.0.4"},"devDependencies":{"request":"~2.31.0","concat-stream":"~1.4.1","promise":"~3.2.0","bash-color":"0.0.3"},"scripts":{"test":"node test/index.js"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/request-sync.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","bugs":{"url":"https://github.com/ForbesLindesay/request-sync/issues"},"_id":"request-sync@0.0.4","dist":{"shasum":"a54cbc3cd2bc4a331a95c0e54f324b3e00855cf0","tarball":"http://registry-npm.ywwl.com/request-sync/download/request-sync-0.0.4.tgz","integrity":"sha512-C0saccTeExvttKps4/s8+3QIhIyX9O6SUpSB7fItOwQ72swPKr4Z+DfB/jn0MTjQWsnZ8YQToiJ704M66ET+BQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC046I7F30yd2c4Tlq/8S3zc5I8uBDxmiVh1n9KYAPm/QIgZHC2xPL3thuzN8IIqMw/aYmM7qYk/bWqDu5YwrCa3tg="}],"size":5046,"noattachment":false,"key":"/request-sync/-/request-sync-0.0.4.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1390093908064,"_cnpm_publish_time":1390093908064},"0.0.3":{"name":"request-sync","version":"0.0.3","description":"Because sometimes you want your web requests to be synchronous","keywords":[],"dependencies":{"qs":"0.6.6","http-sync-win":"0.0.6","http-sync":"0.0.4"},"optionalDependencies":{"http-sync":"0.0.4"},"devDependencies":{"request":"~2.31.0","concat-stream":"~1.4.1","promise":"~3.2.0","bash-color":"0.0.3"},"scripts":{"test":"node test/index.js"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/request-sync.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","bugs":{"url":"https://github.com/ForbesLindesay/request-sync/issues"},"homepage":"https://github.com/ForbesLindesay/request-sync","_id":"request-sync@0.0.3","dist":{"shasum":"6077ca5bcb8af353d051a1ff0e8b6c5686c9bf1e","tarball":"http://registry-npm.ywwl.com/request-sync/download/request-sync-0.0.3.tgz","integrity":"sha512-nwWhnKmzjFn+H8aIewSh3OnoBlc7eT4PvGpyXBADbSvqJHa+hpSu1gCWBt2B5OBbQ8uvI8kZgOT0DNpFAo0C+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMyTVnlLxEWwP1iaNb9uhzeGk9QNVLJ9Q6SQwAxbp6FQIgWlOs505Gdx8FcgaTfbxNYLh0pvpO72O7J0se7BnkRHI="}],"size":5030,"noattachment":false,"key":"/request-sync/-/request-sync-0.0.3.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1389567790092,"_cnpm_publish_time":1389567790092},"0.0.2":{"name":"request-sync","version":"0.0.2","description":"Because sometimes you want your web requests to be synchronous","keywords":[],"dependencies":{"qs":"0.6.6","http-sync-win":"0.0.6","http-sync":"0.0.4"},"optionalDependencies":{"http-sync":"0.0.4"},"devDependencies":{"request":"~2.31.0","concat-stream":"~1.4.1","promise":"~3.2.0","bash-color":"0.0.3"},"scripts":{"test":"node test/index.js"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/request-sync.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","bugs":{"url":"https://github.com/ForbesLindesay/request-sync/issues"},"homepage":"https://github.com/ForbesLindesay/request-sync","_id":"request-sync@0.0.2","dist":{"shasum":"b548e1a75070494576059810af00f2047c612591","tarball":"http://registry-npm.ywwl.com/request-sync/download/request-sync-0.0.2.tgz","integrity":"sha512-6e5JOv8jAg1ujc0S/Xq0x9os95VZqh6P+qg2/PXzJapBpu4mceV92MrlUIhKoNhiX+X6H3xUVYwbZpDkCnHCQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH8OcBlMpRvuRat7jJa5vZxCWfdCil29w+3LE+rgE5KJAiEA7fl8kuT+ob8D5c5MF0Ow3eWVO4437ua3V5xANoY2r70="}],"size":5000,"noattachment":false,"key":"/request-sync/-/request-sync-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1389565473306,"_cnpm_publish_time":1389565473306},"0.0.1":{"name":"request-sync","version":"0.0.1","description":"Because sometimes you want your web requests to be synchronous","keywords":[],"dependencies":{"qs":"0.6.6","http-sync-win":"0.0.6","http-sync":"0.0.4"},"optionalDependencies":{"http-sync":"0.0.4"},"devDependencies":{"request":"~2.31.0","concat-stream":"~1.4.1","promise":"~3.2.0","bash-color":"0.0.3"},"scripts":{"test":"node test/index.js"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/request-sync.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","bugs":{"url":"https://github.com/ForbesLindesay/request-sync/issues"},"homepage":"https://github.com/ForbesLindesay/request-sync","_id":"request-sync@0.0.1","dist":{"shasum":"c68e36a70909b3f43736a6764c9d862438f6f19b","tarball":"http://registry-npm.ywwl.com/request-sync/download/request-sync-0.0.1.tgz","integrity":"sha512-GK1hWLRs6DP206WMDqRpatseR2HTHT4qc++mYHxLXhNA1hn+fIOJb/EYKmK1i0cXBmRVzNMAqAKKmh994KcQhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDLCP1MhF2VXLj2VRnZM9unEPmeDjqkW+gIZX7S4iaZnAiAGnPgq513ORiMVQMtw++uj7rzbCTaaLdDqvyfAp4O19A=="}],"size":5000,"noattachment":false,"key":"/request-sync/-/request-sync-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1389565022152,"_cnpm_publish_time":1389565022152}},"readme":"**request-sync is deprecated, use [sync-request](https://github.com/ForbesLindesay/sync-request)**\r\n\r\n\r\n# request-sync\r\n\r\nBecause sometimes you want your web requests to be synchronous\r\n\r\n[![Build Status](https://img.shields.io/travis/ForbesLindesay/request-sync/master.svg)](https://travis-ci.org/ForbesLindesay/request-sync)\r\n[![Dependency Status](https://img.shields.io/gemnasium/ForbesLindesay/request-sync.svg)](https://gemnasium.com/ForbesLindesay/request-sync)\r\n[![NPM version](https://img.shields.io/npm/v/request-sync.svg)](http://badge.fury.io/js/request-sync)\r\n\r\n## Installation\r\n\r\n    npm install request-sync\r\n\r\n## Usage\r\n\r\nMake a web request:\r\n\r\nOptions:\r\n\r\n - `uri` || `url` - fully qualified uri or parsed url object from `url.parse()`\r\n - `method` - http method (default: `\"GET\"`)\r\n - `qs` - object containing querystring values to be appended to the `uri`\r\n - `headers` - http headers (default: `{}`)\r\n - `body` - entity body for PATCH, POST and PUT requests. Must be a `Buffer` or `String`.\r\n - `auth` - A hash containing values `user` || `username`, `password` || `pass`\r\n - `encoding` - encoding to stringify the result body, set this to `null` to get a `Buffer`\r\n\r\n```js\r\nvar response = request('http://www.example.com');\r\n// => {statusCode: 200, headers: {}, body: 'string of html'}\r\n\r\nvar response = request('http://www.example.com', {method: 'GET'});\r\n// => {statusCode: 200, headers: {}, body: 'string of html'}\r\n\r\nvar response = request({method: 'GET', uri: 'http://www.example.com'});\r\n// => {statusCode: 200, headers: {}, body: 'string of html'}\r\n```\r\n\r\n## License\r\n\r\n  MIT\r\n","_attachments":{},"homepage":"https://github.com/ForbesLindesay/request-sync","bugs":{"url":"https://github.com/ForbesLindesay/request-sync/issues"},"license":"MIT"}