{"_id":"whisperjs","_rev":"63-df8edcac789ff0c06ce731883a64a146","name":"whisperjs","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","dist-tags":{"latest":"0.2.1"},"versions":{"0.0.1":{"name":"whisperjs","version":"0.0.1","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"maintainers":[{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"}],"dependencies":{},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.2.0"},"_npmJsonOpts":{"file":"/Users/snodgrass23/.npm/whisperjs/0.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"whisperjs@0.0.1","_engineSupported":true,"_npmVersion":"1.0.20","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"9dffef47fc007cbd9ef24832a1f5ab94de58ab9e","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.0.1.tgz","integrity":"sha512-ebjVKw0ABBOnd6wsp1OmRyopTTmKPdIuZtYDU21uF2bkwA/PtmpSmzdcMkOON2kA26bPp9kNy2Q8PWSCBwiLhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8e1GtrKEL1fufo8+a2NqiKuOP9DtCp5Z+kyX6i1YZAQIhAOYVIZTGug+EgCP0jMQ3rqq0JPV1kYlbl10bZERBg6yv"}]},"scripts":{},"directories":{}},"0.0.2":{"name":"whisperjs","version":"0.0.2","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"dependencies":{},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.2.0"},"_npmJsonOpts":{"file":"/Users/snodgrass23/.npm/whisperjs/0.0.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"whisperjs@0.0.2","_engineSupported":true,"_npmVersion":"1.0.20","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"3b6ddf24a4c2e6a33142d9ada5e0b4166818626c","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.0.2.tgz","integrity":"sha512-gnIbW0dhSzl+wYqKDnJMq0J5vMpkRZZi8v5RM2pyXzsnY5B4xG3SnMG6CZai/Obl9R4Z38RtAUwjPGn8Pp2+NA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC40P2BKcTPC/yPjUkyJCct6kPu4NI/2zPC/zMIHeSxzAiEA7VaMlbxVfz8EN4F45MN4AqKFSea8oLkC9gQky0iPfm8="}]},"scripts":{},"directories":{}},"0.0.3":{"name":"whisperjs","version":"0.0.3","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"dependencies":{},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.2.0"},"_npmJsonOpts":{"file":"/Users/snodgrass23/.npm/whisperjs/0.0.3/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"whisperjs@0.0.3","_engineSupported":true,"_npmVersion":"1.0.20","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"ba6825c53d7a60169ca3da01b41122ef22ae7687","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.0.3.tgz","integrity":"sha512-9Ppff/ucbVoOAZMN1qpWyJ1xNNHHOw2y4EImZ+bhhzHlRG2lIyGVRLB0rIc4bCu6oEWZCEwIhsWpO/G75ZF1dw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG85iiwHwugvuNCzjT77RdA4dcNzv9ScgeB8n/nmSq1+AiEA1ghcwZHgH4FTjUN6xyD8FpibLWeMX9BHtz+UklEeJhs="}]},"scripts":{},"directories":{}},"0.0.4":{"name":"whisperjs","version":"0.0.4","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"dependencies":{"async":"=0.1.9"},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.2.0"},"_npmJsonOpts":{"file":"/Users/snodgrass23/.npm/whisperjs/0.0.4/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"whisperjs@0.0.4","_engineSupported":true,"_npmVersion":"1.0.20","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"869f9f56a2c8775ed5bc9468fd90a9798e0a9aad","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.0.4.tgz","integrity":"sha512-rSOqzDEvIbgpGbmY6nkzgzOBlGVv9gVKyfEavP9LiAJNi7hjgTLDDx26nb/O5ZhA6dNghqFsXdV+/OqOw1rRGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVeza/y5w4Id12dFWNzSVJhJ39hU1awC6k6K0gw+DA2wIgDwxEDjHcZTk9JM9czvJ2vCqLCGVbgW4mwZUHLtu8NvA="}]},"scripts":{},"maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}],"directories":{}},"0.0.7":{"name":"whisperjs","version":"0.0.7","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"dependencies":{"async":"=0.1.9"},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.2.0"},"_npmUser":{"name":"snodgrass23","email":"snodgrass23@gmail.com"},"_id":"whisperjs@0.0.7","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"9ae145ae4f906710677113eb7f00c7cc0da39e02","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.0.7.tgz","integrity":"sha512-Z9UqRFnMFHXlgjKoMh9URqRTlKX2xS8HCjgSECMpIyI4Oauu8ox4HFuszX89vxP39C42tEENBdVm4C7ti2Fgqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSrloM7mfhyap0sCylVyQLuPxqJP6kjv13L3MZB4of4AIgQ2f5ivc7zEP+Pz4GUFtq7FIQoikZaJw7j55D+x2T1s0="}]},"maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}],"directories":{}},"0.0.8":{"name":"whisperjs","version":"0.0.8","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"dependencies":{"async":"=0.1.9"},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.2.0"},"_npmUser":{"name":"snodgrass23","email":"snodgrass23@gmail.com"},"_id":"whisperjs@0.0.8","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"8e8a62d558dd5e83cd20181c3ccdc446a72da6cf","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.0.8.tgz","integrity":"sha512-Y17LG9/r1w7zgsjTjiX8YjSIBEiz7pYGsxXZzfV6blEvXa5Dx1+Z7dQrOBPwgBxAFopn5agzPKYpTMTfKRW2LA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEzceNlq0026UvFInhlSPDIM2doVNbqEyB6MoRj0tKzgIgchryNXKkgg1CR+3sVSFn+T7+E3GFc9NFLadPl987+KE="}]},"maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}],"directories":{}},"0.0.5":{"name":"whisperjs","version":"0.0.5","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"dependencies":{"async":"=0.1.9"},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.2.0"},"_npmUser":{"name":"snodgrass23","email":"snodgrass23@gmail.com"},"_id":"whisperjs@0.0.5","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"e0605ac3abc4308cfa678532fa6f8e4706303247","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.0.5.tgz","integrity":"sha512-/V606RACQ8FVCu8QlUa8d70NFVF6QwyP1+l0rLDMprQo28kqYFNYq3KtILIxDHQyPSGHS1hpLEs0JMDpqvqhMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdv+/keYtQehK4cG0KKofLbhltTVksdNxVEO4UQ0GSZQIgGEDg+GEVl5WgBSDxsKw4sKbAqT0uSpeYpv10mC9EZhA="}]},"maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}],"directories":{}},"0.0.6":{"name":"whisperjs","version":"0.0.6","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"dependencies":{"async":"=0.1.9"},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.2.0"},"_npmUser":{"name":"snodgrass23","email":"snodgrass23@gmail.com"},"_id":"whisperjs@0.0.6","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"8cdb4cf8cd93085d762b0f418931484eed0636a8","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.0.6.tgz","integrity":"sha512-APplFsVUi3s9B/U22Z9amiY9+e/rDfuCBmsMI+YjoNUhMcD/jrA00tmC8FqD9wY1VxFCbs7VgBFRYqsGNBTwgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDGzJiD7MNOXSXACBUmk2m7bFFbj1kEEuGpqP1WzaqQXAiEA0T1PrwctoOOuJtSmzgv8FqZI7tgTTxvhU2pMB60dnf8="}]},"maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}],"directories":{}},"0.1.0":{"name":"whisperjs","version":"0.1.0","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"dependencies":{"async":"=0.1.9"},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.2.0"},"_npmUser":{"name":"snodgrass23","email":"snodgrass23@gmail.com"},"_id":"whisperjs@0.1.0","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"2a4ee26d80e9f4697c75174163b64b644f8387f7","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.1.0.tgz","integrity":"sha512-cBMvicBzEWVJRMsmHehnZkSRuNFkKnvtqP1QS+p1WEdvHVj6EhcNmISzPAvFflrZ4e8xqE3+z5OaG2jEePHHYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDb/YGrRpDkdPPW+fb/sZpGr4di/L7RpID98zKSvEfo4QIgWhx9oiyo8eQOraiFomOm747aB7Qpw38OTVyXSzsqOuI="}]},"maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}],"directories":{}},"0.1.1":{"name":"whisperjs","version":"0.1.1","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"dependencies":{"async":"=0.1.9"},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.2.0"},"_npmUser":{"name":"snodgrass23","email":"snodgrass23@gmail.com"},"_id":"whisperjs@0.1.1","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.5","_defaultsLoaded":true,"dist":{"shasum":"6c87015194257d8c9cbeb57a5293acd641346491","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.1.1.tgz","integrity":"sha512-vv7fJGodA0qksL9hDZTx3UwCOs5m7glZgbcC1T1Ba2mUY2sNJFZy74jOAhkJWeJgayI6gHqIhgR5McIckBlNsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmuAiWU7hYY56Ophc27aVg9TS/n7rHExD2P9A29X/HRgIgSr3xonKi96hnSHQiuRVCy/1YC4fT2EPdn7aniA5cPx0="}]},"maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}],"directories":{}},"0.1.5":{"name":"whisperjs","version":"0.1.5","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"dependencies":{"async":"=0.1.9"},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.4.0"},"_npmUser":{"name":"snodgrass23","email":"snodgrass23@gmail.com"},"_id":"whisperjs@0.1.5","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.4","_nodeVersion":"v0.6.12","_defaultsLoaded":true,"dist":{"shasum":"d5d5f5357606131a1b823db13d07340dd7c82808","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.1.5.tgz","integrity":"sha512-PBplXYFOTR2ePE6lQSGZPIS99PIko65hY9LVB5d34jmjeqNFF87xcR38IjN+Bz9tqaS8e0PIRYBGqMWHdVkPHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZJF3GltxLXFsg/To2FPP4gz8ve1O8uLmYiMILW+sxyQIhAMvmo/TtMVtWinYb+4zRGRbAj2uwhQsR6ov3fGyQZ1In"}]},"readme":"# WhisperJS\n\n  Provides access to all the routes and route middleware setup through express from other places in the application. Takes an object with three properties: method, path, body.  This can also be an array of objects to run multiple requests at once.  This is useful for bundling many ajax calls into one request or simulating requests through a socket connection.\n\n  The module will intercept the res.send, res.render, and res.redirect call from the final callback of the route (generally, the controller) and send the data back through your defined callback.\n\n## Installation\n\nnpm:\n\n    $ npm install whisperjs\n\n## Simple Usage\n\nTo get started simply run the init method and pass it the server instance which will be used to find routes for each request.\n  \n    require('whisperjs').init(server);\n\nThen build your request object and pass it to the send method\n\n    var Whisper = require('whisperjs');\n\n    var request = { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"} }\n\n    Whisper.send(request, function(err, result) {\n      callback(err, result);\n    })\n\n## Advanced Usage\n\nYou can also send an array of request objects and pass it to the send method\n\n    var request = [\n      { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"} },\n      { method: 'get', path: '/posts/new'} }\n    ];\n\n    Whisper.send(request, function(err, result) {\n      callback(err, result)\n    })\n\n    /**\n     * returns:\n     * \n     * {0: {\"result of login callback\"}, 1: {\"result of get new posts callback\"}}\n     */\n\nThe returned result will be an object containing all of results in the same order an index of the original array. To use custom indexes on the return object, simply pass a sequence property with the request and that property will be used as the index in the return object.\n\n    var request = [\n      { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"}, sequence: \"login\" },\n      { method: 'get', path: '/posts/new'}, \"newposts\" }\n    ];\n    \n    Whisper.send(request, function(err, result) {\n      callback(err, result)\n    })\n\n    /**\n     * returns:\n     * \n     * {\"login\": {\"result of login callback\"}, \"newposts\": {\"result of get new posts callback\"}}\n     */\n\n\n## Running Tests\n\nThe test is built in vowsjs (http://vowsjs.org/). First make sure you have vow installed:\n\n    $ npm install vows -g\n\nThen run the tests:\n\n    $ vows test.js\n\n## License\n\n    The MIT License\n\n    Copyright (c) 2011 Jim Snodgrass <jim@skookum.com>\n\n    Permission is hereby granted, free of charge, to any person obtaining\n    a copy of this software and associated documentation files (the\n    'Software'), to deal in the Software without restriction, including\n    without limitation the rights to use, copy, modify, merge, publish,\n    distribute, sublicense, and/or sell copies of the Software, and to\n    permit persons to whom the Software is furnished to do so, subject to\n    the following conditions:\n\n    The above copyright notice and this permission notice shall be\n    included in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}],"directories":{}},"0.1.6":{"name":"whisperjs","version":"0.1.6","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"dependencies":{"async":"=0.1.9"},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.4.0"},"_npmUser":{"name":"snodgrass23","email":"snodgrass23@gmail.com"},"_id":"whisperjs@0.1.6","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"5f83f8f5f385d9d697fc11465ea3533d90ac0b47","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.1.6.tgz","integrity":"sha512-SaH/h+o9VTlYS0rYCYuybg36Tflm+OtIGERkE3UbM5yDYzBPwvl5cF6EimPouhKKSLs1P41OGix7VoqN0KynqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7D/za82kziaSzFtkOhav1fmuTez01oqe1Mz4Hrl+HwQIgMYrYn/V6aqfNduCPDnyUiodxMw7J7vFhjb93bOED9JY="}]},"readme":"# WhisperJS\n\n  Provides access to all the routes and route middleware setup through express from other places in the application. Takes an object with three properties: method, path, body.  This can also be an array of objects to run multiple requests at once.  This is useful for bundling many ajax calls into one request or simulating requests through a socket connection.\n\n  The module will intercept the res.send, res.render, and res.redirect call from the final callback of the route (generally, the controller) and send the data back through your defined callback.\n\n## Installation\n\nnpm:\n\n    $ npm install whisperjs\n\n## Simple Usage\n\nTo get started simply run the init method and pass it the server instance which will be used to find routes for each request.\n  \n    require('whisperjs').init(server);\n\nThen build your request object and pass it to the send method\n\n    var Whisper = require('whisperjs');\n\n    var request = { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"} }\n\n    Whisper.send(request, function(err, result) {\n      callback(err, result);\n    })\n\n## Advanced Usage\n\nYou can also send an array of request objects and pass it to the send method\n\n    var request = [\n      { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"} },\n      { method: 'get', path: '/posts/new'} }\n    ];\n\n    Whisper.send(request, function(err, result) {\n      callback(err, result)\n    })\n\n    /**\n     * returns:\n     * \n     * {0: {\"result of login callback\"}, 1: {\"result of get new posts callback\"}}\n     */\n\nThe returned result will be an object containing all of results in the same order an index of the original array. To use custom indexes on the return object, simply pass a sequence property with the request and that property will be used as the index in the return object.\n\n    var request = [\n      { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"}, sequence: \"login\" },\n      { method: 'get', path: '/posts/new'}, \"newposts\" }\n    ];\n    \n    Whisper.send(request, function(err, result) {\n      callback(err, result)\n    })\n\n    /**\n     * returns:\n     * \n     * {\"login\": {\"result of login callback\"}, \"newposts\": {\"result of get new posts callback\"}}\n     */\n\n\n## Running Tests\n\nThe test is built in vowsjs (http://vowsjs.org/). First make sure you have vow installed:\n\n    $ npm install vows -g\n\nThen run the tests:\n\n    $ vows test.js\n\n## License\n\n    The MIT License\n\n    Copyright (c) 2011 Jim Snodgrass <jim@skookum.com>\n\n    Permission is hereby granted, free of charge, to any person obtaining\n    a copy of this software and associated documentation files (the\n    'Software'), to deal in the Software without restriction, including\n    without limitation the rights to use, copy, modify, merge, publish,\n    distribute, sublicense, and/or sell copies of the Software, and to\n    permit persons to whom the Software is furnished to do so, subject to\n    the following conditions:\n\n    The above copyright notice and this permission notice shall be\n    included in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}],"directories":{}},"0.1.7":{"name":"whisperjs","version":"0.1.7","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"dependencies":{"async":"=0.1.9"},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.4.0"},"_npmUser":{"name":"snodgrass23","email":"snodgrass23@gmail.com"},"_id":"whisperjs@0.1.7","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"1d78d221e56aae7e6e836f7ead03b6053c7146b8","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.1.7.tgz","integrity":"sha512-rHcRHxyMyaX/evSFM6kMYuPMa1PTtmvTixYDeFGdkwCEq+u06rF81hNG8gy5IIS4Ax+OMwKSe/4DaiKLWyozEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNtn/C244AfnzEkU6zSyxLCqh2jZputsHZ/cpYIvfzqAIgSdFD/zLrm6JUv5NdiONqkSgPh7mxxMAgvl/4wCslarE="}]},"readme":"# WhisperJS\n\n  Provides access to all the routes and route middleware setup through express from other places in the application. Takes an object with three properties: method, path, body.  This can also be an array of objects to run multiple requests at once.  This is useful for bundling many ajax calls into one request or simulating requests through a socket connection.\n\n  The module will intercept the res.send, res.render, and res.redirect call from the final callback of the route (generally, the controller) and send the data back through your defined callback.\n\n## Installation\n\nnpm:\n\n    $ npm install whisperjs\n\n## Simple Usage\n\nTo get started simply run the init method and pass it the server instance which will be used to find routes for each request.\n  \n    require('whisperjs').init(server);\n\nThen build your request object and pass it to the send method\n\n    var Whisper = require('whisperjs');\n\n    var request = { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"} }\n\n    Whisper.send(request, function(err, result) {\n      callback(err, result);\n    })\n\n## Advanced Usage\n\nYou can also send an array of request objects and pass it to the send method\n\n    var request = [\n      { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"} },\n      { method: 'get', path: '/posts/new'} }\n    ];\n\n    Whisper.send(request, function(err, result) {\n      callback(err, result)\n    })\n\n    /**\n     * returns:\n     * \n     * {0: {\"result of login callback\"}, 1: {\"result of get new posts callback\"}}\n     */\n\nThe returned result will be an object containing all of results in the same order an index of the original array. To use custom indexes on the return object, simply pass a sequence property with the request and that property will be used as the index in the return object.\n\n    var request = [\n      { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"}, sequence: \"login\" },\n      { method: 'get', path: '/posts/new'}, \"newposts\" }\n    ];\n    \n    Whisper.send(request, function(err, result) {\n      callback(err, result)\n    })\n\n    /**\n     * returns:\n     * \n     * {\"login\": {\"result of login callback\"}, \"newposts\": {\"result of get new posts callback\"}}\n     */\n\n\n## License\n\n    The MIT License\n\n    Copyright (c) 2011 Jim Snodgrass <jim@skookum.com>\n\n    Permission is hereby granted, free of charge, to any person obtaining\n    a copy of this software and associated documentation files (the\n    'Software'), to deal in the Software without restriction, including\n    without limitation the rights to use, copy, modify, merge, publish,\n    distribute, sublicense, and/or sell copies of the Software, and to\n    permit persons to whom the Software is furnished to do so, subject to\n    the following conditions:\n\n    The above copyright notice and this permission notice shall be\n    included in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}],"directories":{}},"0.1.8":{"name":"whisperjs","version":"0.1.8","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"dependencies":{"async":"=0.1.9"},"devDependencies":{"express":"2.3.x"},"main":"index","engines":{"node":">= 0.4.0"},"_npmUser":{"name":"snodgrass23","email":"snodgrass23@gmail.com"},"_id":"whisperjs@0.1.8","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"8239c8d2d89a80340856a3e92569f3fe4ca6462a","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.1.8.tgz","integrity":"sha512-Roq5vLSMpHxvHFpOi1ZsFt0o9bHgUG93LwWseY/+0zHUn9rqJQJKC95xAZ0u/HqJ+Aw+g6Q2Ra6dF59BhdT+VA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6xf/yHJY6kdMBCXCd6vevRm+10xTEa2mk3GW7+ZaKJAIgI4ETIq6UDworcK8zXY2G83TTOD761nVGCoZ6PDjq0lE="}]},"readme":"# WhisperJS\n\n  Provides access to all the routes and route middleware setup through express from other places in the application. Takes an object with three properties: method, path, body.  This can also be an array of objects to run multiple requests at once.  This is useful for bundling many ajax calls into one request or simulating requests through a socket connection.\n\n  The module will intercept the res.send, res.render, and res.redirect call from the final callback of the route (generally, the controller) and send the data back through your defined callback.\n\n## Installation\n\nnpm:\n\n    $ npm install whisperjs\n\n## Simple Usage\n\nTo get started simply run the init method and pass it the server instance which will be used to find routes for each request.\n  \n    require('whisperjs').init(server);\n\nThen build your request object and pass it to the send method\n\n    var Whisper = require('whisperjs');\n\n    var request = { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"} }\n\n    Whisper.send(request, function(err, result) {\n      callback(err, result);\n    })\n\n## Advanced Usage\n\nYou can also send an array of request objects and pass it to the send method\n\n    var request = [\n      { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"} },\n      { method: 'get', path: '/posts/new'} }\n    ];\n\n    Whisper.send(request, function(err, result) {\n      callback(err, result)\n    })\n\n    /**\n     * returns:\n     * \n     * {0: {\"result of login callback\"}, 1: {\"result of get new posts callback\"}}\n     */\n\nThe returned result will be an object containing all of results in the same order an index of the original array. To use custom indexes on the return object, simply pass a sequence property with the request and that property will be used as the index in the return object.\n\n    var request = [\n      { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"}, sequence: \"login\" },\n      { method: 'get', path: '/posts/new'}, \"newposts\" }\n    ];\n    \n    Whisper.send(request, function(err, result) {\n      callback(err, result)\n    })\n\n    /**\n     * returns:\n     * \n     * {\"login\": {\"result of login callback\"}, \"newposts\": {\"result of get new posts callback\"}}\n     */\n\n\n## License\n\n    The MIT License\n\n    Copyright (c) 2011 Jim Snodgrass <jim@skookum.com>\n\n    Permission is hereby granted, free of charge, to any person obtaining\n    a copy of this software and associated documentation files (the\n    'Software'), to deal in the Software without restriction, including\n    without limitation the rights to use, copy, modify, merge, publish,\n    distribute, sublicense, and/or sell copies of the Software, and to\n    permit persons to whom the Software is furnished to do so, subject to\n    the following conditions:\n\n    The above copyright notice and this permission notice shall be\n    included in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}],"directories":{}},"0.2.0":{"name":"whisperjs","version":"0.2.0","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"dependencies":{"async":"=0.1.9","underscore":"latest"},"devDependencies":{"express":"3.0.0rc5"},"main":"index","engines":{"node":">= 0.4.0"},"_npmUser":{"name":"snodgrass23","email":"snodgrass23@gmail.com"},"_id":"whisperjs@0.2.0","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"2fbe7fbfe7c320ab93a33c84fc9c78b1d4ae4753","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.2.0.tgz","integrity":"sha512-GEqcxG9HKp3qZf+vAanXiwT6VMUvtS1WuSThaKyAsGwrujOfzPzLuOmbMqiMJ8k3IeR0xyagOMZadaTKHUKUBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDm8iTAj3lI8Tg680ywhsYx/objm2DxvCjfwmHyKSUZoQIhAMMvP1SsInZ8ARuNwWXwI8ZxszWaqImF/F3lKTo86x9B"}]},"readme":"# WhisperJS\n\n  Provides access to all the routes and route middleware setup through express from other places in the application. Takes an object with three properties: method, path, body.  This can also be an array of objects to run multiple requests at once.  This is useful for bundling many ajax calls into one request or simulating requests through a socket connection.\n\n  The module will intercept the res.send, res.render, and res.redirect call from the final callback of the route (generally, the controller) and send the data back through your defined callback.\n\n## Installation\n\nnpm:\n\n    $ npm install whisperjs\n\n## Simple Usage\n\nTo get started simply run the init method and pass it the server instance which will be used to find routes for each request.\n  \n    require('whisperjs').init(server);\n\nThen build your request object and pass it to the send method\n\n    var Whisper = require('whisperjs');\n\n    var request = { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"} }\n\n    Whisper.send(request, function(err, result) {\n      callback(err, result);\n    })\n\n## Advanced Usage\n\nYou can also send an array of request objects and pass it to the send method\n\n    var request = [\n      { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"} },\n      { method: 'get', path: '/posts/new'} }\n    ];\n\n    Whisper.send(request, function(err, result) {\n      callback(err, result)\n    })\n\n    /**\n     * returns:\n     * \n     * {0: {\"result of login callback\"}, 1: {\"result of get new posts callback\"}}\n     */\n\nThe returned result will be an object containing all of results in the same order an index of the original array. To use custom indexes on the return object, simply pass a sequence property with the request and that property will be used as the index in the return object.\n\n    var request = [\n      { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"}, sequence: \"login\" },\n      { method: 'get', path: '/posts/new'}, \"newposts\" }\n    ];\n    \n    Whisper.send(request, function(err, result) {\n      callback(err, result)\n    })\n\n    /**\n     * returns:\n     * \n     * {\"login\": {\"result of login callback\"}, \"newposts\": {\"result of get new posts callback\"}}\n     */\n\n\n## License\n\n    The MIT License\n\n    Copyright (c) 2011 Jim Snodgrass <jim@skookum.com>\n\n    Permission is hereby granted, free of charge, to any person obtaining\n    a copy of this software and associated documentation files (the\n    'Software'), to deal in the Software without restriction, including\n    without limitation the rights to use, copy, modify, merge, publish,\n    distribute, sublicense, and/or sell copies of the Software, and to\n    permit persons to whom the Software is furnished to do so, subject to\n    the following conditions:\n\n    The above copyright notice and this permission notice shall be\n    included in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}],"directories":{}},"0.2.1":{"name":"whisperjs","version":"0.2.1","description":"HTTP Request functionality from within a node.js application using preset expresss routes and middleware","keywords":["framework","web","middleware","whisper"],"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"},"dependencies":{"async":"=0.1.9","underscore":"latest"},"devDependencies":{"express":"3.0.0rc5"},"main":"index","engines":{"node":">= 0.4.0"},"_npmUser":{"name":"snodgrass23","email":"snodgrass23@gmail.com"},"_id":"whisperjs@0.2.1","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"17f25b3caa5c574c014f85a87bada6601502258d","tarball":"https://registry.npmjs.org/whisperjs/-/whisperjs-0.2.1.tgz","integrity":"sha512-4ZDy2D3ufaxOfBeQWQYBlRf7CnQyFQnwok0U9OrfHdT1LL4P5/VDTNrdoFcoAANmKuJu7D/ZpHV+UbM1nZ2m+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrvxaD7X7v74kma9z4iEMIWSM56rkyZp925GgFRSFYPgIhAIBgrT2P8J0OruOv5xkVLBYsX/ptml8kBK6CJ/VsItPs"}]},"readme":"# WhisperJS\n\n  Provides access to all the routes and route middleware setup through express from other places in the application. Takes an object with three properties: method, path, body.  This can also be an array of objects to run multiple requests at once.  This is useful for bundling many ajax calls into one request or simulating requests through a socket connection.\n\n  The module will intercept the res.send, res.render, and res.redirect call from the final callback of the route (generally, the controller) and send the data back through your defined callback.\n\n## Installation\n\nnpm:\n\n    $ npm install whisperjs\n\n## Simple Usage\n\nTo get started simply run the init method and pass it the server instance which will be used to find routes for each request.\n  \n    require('whisperjs').init(server);\n\nThen build your request object and pass it to the send method\n\n    var Whisper = require('whisperjs');\n\n    var request = { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"} }\n\n    Whisper.send(request, function(err, result) {\n      callback(err, result);\n    })\n\n## Advanced Usage\n\nYou can also send an array of request objects and pass it to the send method\n\n    var request = [\n      { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"} },\n      { method: 'get', path: '/posts/new'} }\n    ];\n\n    Whisper.send(request, function(err, result) {\n      callback(err, result)\n    })\n\n    /**\n     * returns:\n     * \n     * {0: {\"result of login callback\"}, 1: {\"result of get new posts callback\"}}\n     */\n\nThe returned result will be an object containing all of results in the same order an index of the original array. To use custom indexes on the return object, simply pass a sequence property with the request and that property will be used as the index in the return object.\n\n    var request = [\n      { method: 'post', path: '/login', body: {username: \"Jim\", password: \"password\"}, sequence: \"login\" },\n      { method: 'get', path: '/posts/new'}, \"newposts\" }\n    ];\n    \n    Whisper.send(request, function(err, result) {\n      callback(err, result)\n    })\n\n    /**\n     * returns:\n     * \n     * {\"login\": {\"result of login callback\"}, \"newposts\": {\"result of get new posts callback\"}}\n     */\n\n\n## License\n\n    The MIT License\n\n    Copyright (c) 2011 Jim Snodgrass <jim@skookum.com>\n\n    Permission is hereby granted, free of charge, to any person obtaining\n    a copy of this software and associated documentation files (the\n    'Software'), to deal in the Software without restriction, including\n    without limitation the rights to use, copy, modify, merge, publish,\n    distribute, sublicense, and/or sell copies of the Software, and to\n    permit persons to whom the Software is furnished to do so, subject to\n    the following conditions:\n\n    The above copyright notice and this permission notice shall be\n    included in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}]}},"maintainers":[{"name":"snodgrass23","email":"snodgrass23@gmail.com"}],"time":{"modified":"2022-06-29T01:31:32.926Z","created":"2011-07-23T19:50:58.921Z","0.0.1":"2011-07-23T19:50:59.192Z","0.0.2":"2011-07-23T20:58:02.066Z","0.0.3":"2011-07-23T21:06:13.363Z","0.0.4":"2011-08-24T14:33:41.385Z","0.0.5":"2011-12-24T17:44:43.148Z","0.0.6":"2011-12-24T17:46:17.873Z","0.0.7":"2011-12-23T23:29:09.073Z","0.0.8":"2011-12-24T16:52:54.579Z","0.1.0":"2011-12-24T17:57:06.370Z","0.1.1":"2011-12-31T00:12:24.821Z","0.1.5":"2012-03-20T13:59:28.538Z","0.1.6":"2012-05-08T14:56:53.426Z","0.1.7":"2012-05-30T19:32:27.362Z","0.1.8":"2012-08-27T20:21:15.833Z","0.2.0":"2012-11-04T16:01:34.278Z","0.2.1":"2012-11-04T19:35:00.812Z"},"author":{"name":"Jim Snodgrass","email":"snodgrass23@gmail.com"},"repository":{"type":"git","url":"git://github.com/snodgrass23/whisperjs.git"}}