{"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":{},"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","publish_time":1411996022874,"_cnpm_publish_time":1411996022874,"dist-tags":{"latest":"1.0.0"}}