{"_id":"connect-hopeful-body-parser","_rev":"14-94e8e6f8b3448c8f0b4f87887ebaeabe","name":"connect-hopeful-body-parser","description":"Attempt to parse body data without an Accept header","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"author":{"name":"Glen Mailer","email":"glenjamin@gmail.com"},"name":"connect-hopeful-body-parser","description":"Attempt to parse body data without an Accept header","version":"0.1.0","repository":{"type":"git","url":"git://github.com/glenjamin/connect-hopeful-body-parser.git"},"license":"MIT","main":"lib/connect-hopeful-body-parser","scripts":{"test":"node spec/connect-hopeful-body-parser-spec.js"},"engines":{"node":"~0.4.12"},"dependencies":{"qs":">= 0.3.1"},"devDependencies":{"nodespec":"~0.1.0"},"_npmUser":{"name":"glenjamin","email":"glenjamin@gmail.com"},"_id":"connect-hopeful-body-parser@0.1.0","_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"f7c830f67cdaf4a497441fed5aacd4b9f1f1cacf","tarball":"https://registry.npmjs.org/connect-hopeful-body-parser/-/connect-hopeful-body-parser-0.1.0.tgz","integrity":"sha512-ZYRhrZqKtSn5VMY6EpswqTwKOW8En9IHAVqLdNgWomno3SCxCK5SEERJ2nuPXrSShfX3S3Qnx77829eaIdth2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFzMHOVb9DqKoI7gxX+okwuNKFybY8V7N/VTQ36wX2DkAiEA3hC4kjji/+AAs5sKs5hnNqBuzV8J/9ZRW0I4TxUgQ0E="}]},"maintainers":[{"name":"glenjamin","email":"glenjamin@gmail.com"}],"directories":{}},"0.1.1":{"author":{"name":"Glen Mailer","email":"glenjamin@gmail.com"},"name":"connect-hopeful-body-parser","description":"Attempt to parse body data without an Accept header","version":"0.1.1","repository":{"type":"git","url":"git://github.com/glenjamin/connect-hopeful-body-parser.git"},"license":"MIT","main":"lib/connect-hopeful-body-parser","scripts":{"test":"node spec/connect-hopeful-body-parser-spec.js"},"engines":{"node":"~0.4.12"},"dependencies":{"qs":">= 0.3.1"},"devDependencies":{"nodespec":"~0.1.0"},"_npmUser":{"name":"glenjamin","email":"glenjamin@gmail.com"},"_id":"connect-hopeful-body-parser@0.1.1","_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"537e74b2f8bb3ab147786f1417e82a5d9d85ce83","tarball":"https://registry.npmjs.org/connect-hopeful-body-parser/-/connect-hopeful-body-parser-0.1.1.tgz","integrity":"sha512-dHDGgNS8VuJDD66uiuXCwXBMIkS6Kfj3MxvcdzVpYiYlM45Nwfk6ps3zpFYB+676GpCRR3M0XX3W/lfZMkeZUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDIfWaOsUBsqnZbZMCeM4+q7uBbOZFHb6xrKwgC1PbhyAiBizffuK2Jr4KR2ASUyL4uoqCiHTWR9zWj/FicvpWTKLg=="}]},"maintainers":[{"name":"glenjamin","email":"glenjamin@gmail.com"}]},"0.2.0":{"author":{"name":"Glen Mailer","email":"glenjamin@gmail.com"},"name":"connect-hopeful-body-parser","description":"Attempt to parse body data without an Accept header","version":"0.2.0","repository":{"type":"git","url":"git://github.com/glenjamin/connect-hopeful-body-parser.git"},"license":"MIT","main":"lib/connect-hopeful-body-parser","scripts":{"test":"node spec/connect-hopeful-body-parser-spec.js"},"dependencies":{"qs":">= 0.3.1"},"devDependencies":{"nodespec":"~0.4.1"},"bugs":{"url":"https://github.com/glenjamin/connect-hopeful-body-parser/issues"},"_id":"connect-hopeful-body-parser@0.2.0","dist":{"shasum":"93b619b869cb5c513e7cbb71d173ef6aebd625d9","tarball":"https://registry.npmjs.org/connect-hopeful-body-parser/-/connect-hopeful-body-parser-0.2.0.tgz","integrity":"sha512-FPeDbTY/hJEzoL9HG+MyY6pLnkvXT1wXwuTAGrlivhwKn5DyHGqgnCO7ZXcT2vzwdOdqVanZswp1oTqlSideOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICixr9G0mObjAUXNsoVZ99HDiVv3rvKb812c2dpc96h5AiA/2yFTKXKT4NIarwzxDHgPb3aDACjP4lkREj4I/zfbBA=="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"glenjamin","email":"glenjamin@gmail.com"},"maintainers":[{"name":"glenjamin","email":"glenjamin@gmail.com"}]},"0.3.0":{"author":{"name":"Glen Mailer","email":"glenjamin@gmail.com"},"name":"connect-hopeful-body-parser","description":"Attempt to parse body data without an Accept header","version":"0.3.0","repository":{"type":"git","url":"git://github.com/glenjamin/connect-hopeful-body-parser.git"},"license":"MIT","main":"lib/connect-hopeful-body-parser","scripts":{"test":"node spec/connect-hopeful-body-parser-spec.js"},"dependencies":{"qs":"^5.0.0"},"devDependencies":{"nodespec":"~0.4.1"},"gitHead":"871238f16c6579083d2015d18090b5b50f46f4a8","bugs":{"url":"https://github.com/glenjamin/connect-hopeful-body-parser/issues"},"homepage":"https://github.com/glenjamin/connect-hopeful-body-parser#readme","_id":"connect-hopeful-body-parser@0.3.0","_shasum":"55dd7410317795ac99c42bbf42a49abc325dd1ab","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"glenjamin","email":"glenjamin@gmail.com"},"dist":{"shasum":"55dd7410317795ac99c42bbf42a49abc325dd1ab","tarball":"https://registry.npmjs.org/connect-hopeful-body-parser/-/connect-hopeful-body-parser-0.3.0.tgz","integrity":"sha512-D7zv8nxdf4WvLU8U+Bj/6pEpm3yNbTzE54lewrqnhZG1AUpSeQ5GbYz4fh/NNCMsz27181xRuva5tnwHvs3H/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID82UmlJiE78sH3Kh/8OwbxrykrxSZeJQpmB7+BdvL8GAiADT4eBoA2lpnVF2QUYb6SxCyktWKgAgXiq6+23lbuL4g=="}]},"maintainers":[{"name":"glenjamin","email":"glenjamin@gmail.com"}]}},"maintainers":[{"name":"glenjamin","email":"glenjamin@gmail.com"}],"time":{"modified":"2022-06-13T21:32:08.656Z","created":"2011-11-01T11:21:05.599Z","0.0.1":"2011-11-01T11:21:06.897Z","0.1.0":"2011-11-01T13:17:31.210Z","0.1.1":"2011-11-04T16:22:18.604Z","0.2.0":"2013-09-25T14:34:29.893Z","0.3.0":"2015-11-03T13:29:39.561Z"},"author":{"name":"Glen Mailer","email":"glenjamin@gmail.com"},"repository":{"type":"git","url":"git://github.com/glenjamin/connect-hopeful-body-parser.git"},"readme":"[![build status](https://secure.travis-ci.org/glenjamin/connect-hopeful-body-parser.png)](http://travis-ci.org/glenjamin/connect-hopeful-body-parser)\n# connect-hopeful-body-parser\n\nFor when you don't really want to be that strict, will attempt to parse\n\n  * The request body as JSON\n  * The request body as x-www-form-urlencoded\n  * The urlencoded query string\n\n## Install\n\n    npm install connect-hopeful-body-parser\n\n## Usage\n\nAdd to the connect middleware chain, `req.body` will be set to either the\nparsed object, or null.\n\n    // server.js\n    var connect = require('connect');\n    var bodyParser = require('connect-hopeful-body-parser');\n    var server = connect(\n        bodyParser(),\n        function(req, res) {\n            res.end(require('util').inspect(req.body));\n        }\n    );\n    server.listen(9999);\n\n    # Once the server is running...\n    $ curl localhost:9999 -d '{\"value\" : {\"a\" : 1}}'\n    { value: { a: 1 } }\n\n    $ curl localhost:9999 -d 'value[a]=1'\n    { value: { a: 1 } }\n\n    $ curl \"localhost:9999?value\\[a\\]=1\"\n    { value: { a: 1 } }\n\n    $ curl \"localhost:9999\"\n    null\n\n## License\n\nMIT Licensed, copyright Glen Mailer 2011\n","homepage":"https://github.com/glenjamin/connect-hopeful-body-parser#readme","bugs":{"url":"https://github.com/glenjamin/connect-hopeful-body-parser/issues"},"license":"MIT","readmeFilename":"README.md"}