{"_id":"koa-json-body","_rev":"21-bbd81a91c17b14df590558c05f9776e1","name":"koa-json-body","description":"Single-purpose koa middleware to parse valid JSON request bodies and nothing else.","dist-tags":{"latest":"5.3.0","alpha":"5.0.0-alpha.1"},"versions":{"0.0.1":{"name":"koa-json-body","version":"0.0.1","description":"koa middleware to parse json request bodies","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/venables/koa-json-body"},"keywords":["koa","middleware","request","parse","json"],"author":{"name":"Matt Venables"},"license":"MIT","bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"homepage":"https://github.com/venables/koa-json-body","dependencies":{"co-body":"^0.0.1"},"_id":"koa-json-body@0.0.1","dist":{"shasum":"d48952207ef7ec55e5c2711be7615d784ca707f1","tarball":"https://registry.npmjs.org/koa-json-body/-/koa-json-body-0.0.1.tgz","integrity":"sha512-y/IUahIyZMXy9tuCAB5Cip0KDvlCUZSPKDcwIkiPKb0w+4SKuYNimWyQYKUzSF7uLrwcwE1rZozihgXX0XWWUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEDTYzrQGq3HrOhKrysvXQN+cw2hCVL91CfYeaXhQ5m6AiAOW+uDCg4bbB0ACahuWknV9LjcH/jg/eG8BUAft8k2Dg=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"venables","email":"mattvenables@gmail.com"},"maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}]},"0.0.2":{"name":"koa-json-body","version":"0.0.2","description":"koa middleware to parse json request bodies","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/venables/koa-json-body"},"keywords":["koa","middleware","request","parse","json"],"author":{"name":"Matt Venables"},"license":"MIT","bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"homepage":"https://github.com/venables/koa-json-body","dependencies":{"co-body":"^0.0.1"},"_id":"koa-json-body@0.0.2","dist":{"shasum":"e1a665b4c2cd1662f2cdc1287c8431cb08396fba","tarball":"https://registry.npmjs.org/koa-json-body/-/koa-json-body-0.0.2.tgz","integrity":"sha512-KCPGr/o80dDRpw4s/csEBU1Buffx4FUGjJgyQ1x55JwoW5TIj44U7SXcdVLv3lP3JyFrA3V2us6JyZZgBE5eog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqNPh/wZZTXkVIcLtyLKLMlpA0QNCnd6ho/KkBlbi0BQIgVIh8C8l+dPj6rS384VPv3Ixc5D4HDCQ3ra+Po8Kr5HI="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"venables","email":"mattvenables@gmail.com"},"maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}]},"0.0.3":{"name":"koa-json-body","version":"0.0.3","description":"koa middleware to parse json request bodies","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/venables/koa-json-body"},"keywords":["koa","middleware","request","parse","json"],"author":{"name":"Matt Venables"},"license":"MIT","bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"homepage":"https://github.com/venables/koa-json-body","dependencies":{"co-body":"^0.0.1"},"_id":"koa-json-body@0.0.3","dist":{"shasum":"986344d7412d0e3daacf3d031bff4723f404f8f7","tarball":"https://registry.npmjs.org/koa-json-body/-/koa-json-body-0.0.3.tgz","integrity":"sha512-xp/bIimb3zdOksi3raq5z1ADmBc7XtIjFgjdIGnKyIUL0en/17XwyCPXKqu2Hfg8UTXzQMBec4WhcB+P0wMINA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZRhyBiG4clsMXgtjkVBDn2CIhjhIRvSERj9Af9ZTIvgIgYXDskj55QybXWSbi6hAOkH7pyWTXIDpxk6Sb/WUBQAc="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"venables","email":"mattvenables@gmail.com"},"maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}]},"1.0.0":{"name":"koa-json-body","version":"1.0.0","description":"koa middleware to parse json request bodies","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/venables/koa-json-body.git"},"keywords":["koa","middleware","request","parse","json"],"author":{"name":"Matt Venables"},"license":"MIT","bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"homepage":"https://github.com/venables/koa-json-body","dependencies":{"co-body":"^2.0.0"},"gitHead":"156370bd42d3b9923dcae553d8ed01be7de8b917","_id":"koa-json-body@1.0.0","_shasum":"c5d7151f08d9aed4d9d4fa8626af0a1fdd88b5fc","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"venables","email":"mattvenables@gmail.com"},"dist":{"shasum":"c5d7151f08d9aed4d9d4fa8626af0a1fdd88b5fc","tarball":"https://registry.npmjs.org/koa-json-body/-/koa-json-body-1.0.0.tgz","integrity":"sha512-c2mbykFvHF6M9TtsKKpMqSd9OFYXIb/QI60MSJ4iyFstXfWjj16OcZbKchjGGavPxS8MmE7GLsqXHrdf/4LzQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCH9bGLWlfa5yisLmss3PmggPOIordCvlVK7lZi93OB3QIgK3wNS/3P81waY5lUQnnlhBUcLi7QmEFDtSOt+EaPzS0="}]},"maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}]},"1.1.0":{"name":"koa-json-body","version":"1.1.0","description":"koa middleware to parse json request bodies","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/venables/koa-json-body.git"},"keywords":["koa","middleware","request","parse","json"],"author":{"name":"Matt Venables"},"license":"MIT","bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"homepage":"https://github.com/venables/koa-json-body","dependencies":{"co-body":"^2.0.0"},"gitHead":"fec946cb9d3ccf26dcbbbeafa559ac60ddc2abc0","_id":"koa-json-body@1.1.0","_shasum":"911549aeb959d8445991dd1c6b16a2cdc266c5f4","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"venables","email":"mattvenables@gmail.com"},"dist":{"shasum":"911549aeb959d8445991dd1c6b16a2cdc266c5f4","tarball":"https://registry.npmjs.org/koa-json-body/-/koa-json-body-1.1.0.tgz","integrity":"sha512-oh1x6mLXpIvA/C3B2Ia+p7UTm+hQfT+NJobtINE2nP3TuD3DMfkgTZl48bjcvUgwYeCcoPD9cphmbj6C+Afh1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPFFoXJMFUCOkg8dwxjy6BZWm5/2p2V4VgvLeZC8k8/AIhAI92Jn1kKvzaTEegHn4Ivjarh893q13tByzEOjYC/7OL"}]},"maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}]},"3.0.0":{"name":"koa-json-body","version":"3.0.0","description":"koa middleware to parse json request bodies","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/venables/koa-json-body.git"},"keywords":["koa","middleware","request","parse","json"],"author":{"name":"Matt Venables"},"license":"MIT","bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"homepage":"https://github.com/venables/koa-json-body","dependencies":{"co-body":"^3.0.0"},"gitHead":"81e5a26202f662a867075909ba3a32b1dfb96ee4","_id":"koa-json-body@3.0.0","_shasum":"2e2d027da418f0e301c700c9f840b647a4b5de0c","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"venables","email":"mattvenables@gmail.com"},"dist":{"shasum":"2e2d027da418f0e301c700c9f840b647a4b5de0c","tarball":"https://registry.npmjs.org/koa-json-body/-/koa-json-body-3.0.0.tgz","integrity":"sha512-SO56q8emIRmanuBZXlnGr7Fhw/fgWaPsBof9zPDlyndTivXCbcA3fNArqFtc3dKz581TfJGiioLB5AkAaNRE1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHbI6f6uOuSUJ+HYzJ7v7g8WugAz6IBuPUCGnUpxUuNkAiEAwIspxZQ886p+qoEzS9d/rdbwrZjhIl0QbC37FbaEAP8="}]},"maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}]},"3.1.0":{"name":"koa-json-body","version":"3.1.0","description":"koa middleware to parse json request bodies","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/venables/koa-json-body"},"keywords":["koa","middleware","request","parse","json"],"author":{"name":"Matt Venables"},"license":"MIT","bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"homepage":"https://github.com/venables/koa-json-body","dependencies":{"co-body":"^3.0.0"},"gitHead":"91f75cac568d05e491f1f73f27289f6dd6df7fa1","_id":"koa-json-body@3.1.0","_shasum":"832e2be25bda0c00e0be30139556661bd6cec0d4","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"venables","email":"mattvenables@gmail.com"},"maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}],"dist":{"shasum":"832e2be25bda0c00e0be30139556661bd6cec0d4","tarball":"https://registry.npmjs.org/koa-json-body/-/koa-json-body-3.1.0.tgz","integrity":"sha512-ZAM3mPQ4FUMqy2xSevCBLAdsr177lztHamlFzvlvJk6ZwXdyweXJ9IR42nxKJ9BcbDyoC3pmQ8HM3WUKmTspiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDLZDCI5yAi9yu4ypIU2Z6bvt3y/b76SZPoURHwxCTx1AiAICbOACvOpXgspbIPaxo2geJG/Ct59RzByvnNZJWuGIw=="}]}},"4.0.0":{"name":"koa-json-body","version":"4.0.0","description":"koa middleware to parse json request bodies","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/venables/koa-json-body.git"},"keywords":["koa","middleware","request","parse","json"],"author":{"name":"Matt Venables"},"license":"MIT","bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"homepage":"https://github.com/venables/koa-json-body","dependencies":{"co-body":"^4.0.0"},"gitHead":"ee0532e77c512964c95be30773566b0ff6b78757","_id":"koa-json-body@4.0.0","_shasum":"3a85ba5f2ee71dc2ad7d11f1119fbc11429e483c","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"venables","email":"mattvenables@gmail.com"},"dist":{"shasum":"3a85ba5f2ee71dc2ad7d11f1119fbc11429e483c","tarball":"https://registry.npmjs.org/koa-json-body/-/koa-json-body-4.0.0.tgz","integrity":"sha512-whhbn3dnGxTd3CXMC1FTGpv7uLLff/crIsdroB4VrDZnTQmpQwaVTxtjNEiW6SEyyaKnv4mQytCXtzL0KzES7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCG2tkSExOU2kTC2lT1b2sbSSa03wIJSXTGcsdeSwrzXAIgWDiLpA4wHSE0CueH4UO/f0hO03uShWJEb/2/rOsMlj0="}]},"maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}]},"5.0.0-alpha.1":{"name":"koa-json-body","version":"5.0.0-alpha.1","description":"koa middleware to parse json request bodies","main":"lib/index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/venables/koa-json-body.git"},"keywords":["koa","middleware","request","parse","json"],"author":{"name":"Matt Venables"},"license":"MIT","bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"homepage":"https://github.com/venables/koa-json-body","engines":{"node":">= 4.0.0"},"dependencies":{"co-body":"^4.0.0"},"devDependencies":{"koa":">= 2.0.0-alpha.3","mocha":"^2.3.3","supertest":"^1.1.0"},"peerDependencies":{"koa":">= 2.0.0-alpha.3"},"gitHead":"a885b2c79a64aa6e10a4746e0bc551277dbd11c9","_id":"koa-json-body@5.0.0-alpha.1","_shasum":"1df028a38a87c80ce706fa5298216afb389f2aa1","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"venables","email":"mattvenables@gmail.com"},"dist":{"shasum":"1df028a38a87c80ce706fa5298216afb389f2aa1","tarball":"https://registry.npmjs.org/koa-json-body/-/koa-json-body-5.0.0-alpha.1.tgz","integrity":"sha512-T0IlGaUBthJS+kgJI169CFCruw6zZQYBsi0hhS2dr4AlhJxIQJaTa2YHgSrevOG/tLdpf1zeJ4yetgkTkYWQLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpj6zzKKwg6emCkmFgNOjZ7unK1ZsPy5Sv+9ZpzrhEjwIhAPnvANYMTVIFAdc+R5XIvelyer0iY7ZAtmtttidIJk5f"}]},"maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}]},"5.0.0":{"name":"koa-json-body","version":"5.0.0","description":"koa middleware to parse json request bodies","main":"lib/index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/venables/koa-json-body.git"},"keywords":["koa","middleware","request","parse","json"],"author":{"name":"Matt Venables"},"license":"MIT","bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"homepage":"https://github.com/venables/koa-json-body","engines":{"node":">= 4.0.0"},"dependencies":{"co-body":"^4.0.0"},"devDependencies":{"koa":">= 2.0.0","mocha":"^2.3.3","supertest":"^1.1.0"},"peerDependencies":{"koa":">= 2.0.0"},"gitHead":"5fdcc25c3be7bca251aba037f3d6a5fb1e12ea6c","_id":"koa-json-body@5.0.0","_shasum":"8179c0f8297719995d956adaa86e5969497d726a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"venables","email":"mattvenables@gmail.com"},"dist":{"shasum":"8179c0f8297719995d956adaa86e5969497d726a","tarball":"https://registry.npmjs.org/koa-json-body/-/koa-json-body-5.0.0.tgz","integrity":"sha512-Zr4i2OwKucWj01suqpdNdMu8xxsfaeiUBlq9Nfxeav4UO9SOOU+Xhc3wExnSnArwtMHW0o8BGeDAxj5YFeIiSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDucqHD4adImWAfm1Kstuxpx715f4KGrpy+bd6feap4RgIhAJmfosD7kHPRhjlK8ngd2TgdfYYm2P5x8ePZPtgEHq9r"}]},"maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-json-body-5.0.0.tgz_1468162598925_0.20149276196025312"}},"5.1.0":{"name":"koa-json-body","version":"5.1.0","description":"koa middleware to parse json request bodies","main":"lib/index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/venables/koa-json-body.git"},"keywords":["koa","middleware","request","parse","json"],"author":{"name":"Matt Venables"},"license":"MIT","bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"homepage":"https://github.com/venables/koa-json-body","engines":{"node":">= 4.0.0"},"dependencies":{"co-body":"^4.0.0"},"devDependencies":{"koa":"next","mocha":"^2.3.3","supertest":"^1.1.0"},"peerDependencies":{"koa":"next"},"gitHead":"2884d56892aaf58323470aee286003f268f30bea","_id":"koa-json-body@5.1.0","_shasum":"dd5ded963b2f9650b1973255b78a99aa204e9364","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"venables","email":"mattvenables@gmail.com"},"dist":{"shasum":"dd5ded963b2f9650b1973255b78a99aa204e9364","tarball":"https://registry.npmjs.org/koa-json-body/-/koa-json-body-5.1.0.tgz","integrity":"sha512-jmnRhHzk2JGt6XLK8NJ+zzun0anwlQLhdj1WxMVmjQEM7HO1jBZrFcbjk/WVb7Vg3Jlj1BcdeNc/V6VYV2svHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICBe17G5J6uMgqsd+lYGeSYZogubMXyLbErxc6X9xxPtAiEAkGCJaHQmCjlsag6gBvZCHXaeO+HprKH4RPfHJZVEDKo="}]},"maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/koa-json-body-5.1.0.tgz_1484498019584_0.32163392938673496"}},"5.2.0":{"name":"koa-json-body","version":"5.2.0","description":"koa middleware to parse json request bodies","main":"lib/index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/venables/koa-json-body.git"},"keywords":["koa","middleware","request","parse","json"],"author":{"name":"Matt Venables"},"license":"MIT","bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"homepage":"https://github.com/venables/koa-json-body","engines":{"node":">= 4.0.0"},"dependencies":{"co-body":"^4.0.0"},"devDependencies":{"koa":"next","mocha":"^3.2.0","supertest":"^2.0.1"},"gitHead":"676b3728a4015fcec444e7e9214314298e153d9e","_id":"koa-json-body@5.2.0","_shasum":"86894162c1b766fe90c4b2f53e88ff5157ec864b","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"venables","email":"mattvenables@gmail.com"},"dist":{"shasum":"86894162c1b766fe90c4b2f53e88ff5157ec864b","tarball":"https://registry.npmjs.org/koa-json-body/-/koa-json-body-5.2.0.tgz","integrity":"sha512-N6DkxeW3sBx0zSqgv0fVomf6TeCHY3ewQHVQKCQMcbjdLX/J9guqyUw08z615YSdMdYsCyyCI+LIxd/KpIwXkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICArfj/QVtpxwKekKXmqDMDcbiFmy8SBQtOkBUScTAsKAiEAnsBfRe03NMwtgrct764kDv4F8cFcHtm0gNfjpaJI9x4="}]},"maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-json-body-5.2.0.tgz_1484499028696_0.8374258764088154"}},"5.3.0":{"name":"koa-json-body","version":"5.3.0","description":"Single-purpose koa middleware to parse valid JSON request bodies and nothing else.","main":"lib/index.js","scripts":{"test":"standard && NODE_ENV=test ./node_modules/.bin/nyc --reporter=lcov --reporter=text-summary ./node_modules/.bin/mocha 'test/**/*.spec.js'","coverage":"nyc report --reporter=text-lcov | ./node_modules/.bin/coveralls"},"repository":{"type":"git","url":"git+https://github.com/venables/koa-json-body.git"},"keywords":["koa","middleware","request","parse","json"],"author":{"name":"Matt Venables"},"license":"MIT","bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"homepage":"https://github.com/venables/koa-json-body","engines":{"node":">= 4.0.0"},"dependencies":{"co-body":"^5.0.0"},"devDependencies":{"coveralls":"^2.11.16","koa":"next","mocha":"^3.2.0","nyc":"^10.1.2","standard":"^9.0.0","supertest":"^3.0.0"},"gitHead":"f75acc30f746bc9931d3a87fc54e67b168a836fc","_id":"koa-json-body@5.3.0","_shasum":"64aad3f400adfb81df54b63f7a5eb38bad62d980","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.1","_npmUser":{"name":"venables","email":"mattvenables@gmail.com"},"dist":{"shasum":"64aad3f400adfb81df54b63f7a5eb38bad62d980","tarball":"https://registry.npmjs.org/koa-json-body/-/koa-json-body-5.3.0.tgz","integrity":"sha512-M2P3zLOs2XiYCpJLGSTXOKij4u5vJ8pbAMXXarXQnwsx4DwDav9qn081tYI2RdZ79B159Pdk4bRfvwl/sazL8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEfGgd5NkZ+dcea7xcX50sph+QPGDZ8bpIS5lUhjtj+gAiBFL/i4Yxsl++iznviBDdoCkeCJsadYCvreVOJRkO6Jxg=="}]},"maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-json-body-5.3.0.tgz_1488656482115_0.6394210620783269"}}},"readme":"koa-json-body\n=============\n\n[![Version](https://img.shields.io/npm/v/koa-json-body.svg)](https://www.npmjs.com/package/koa-json-body)\n[![Build Status](https://img.shields.io/travis/venables/koa-json-body/master.svg)](https://travis-ci.org/venables/koa-json-body)\n[![Coverage Status](https://img.shields.io/coveralls/venables/koa-json-body.svg)](https://coveralls.io/github/venables/koa-json-body)\n[![Dependency Status](https://img.shields.io/david/venables/koa-json-body/master.svg)](https://david-dm.org/venables/koa-json-body)\n[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n[![Downloads](https://img.shields.io/npm/dm/koa-json-body.svg)](https://www.npmjs.com/package/koa-json-body)\n\n----------\n\nA single-purpose [koa](https://github.com/koajs/koa) middleware to only parse JSON request bodies and nothing else.\n\nBy default, this libarary parses all **valid** JSON bodies on `POST`, `PUT`, and `PATCH` requests, and assigns the value to `ctx.request.body`.\n\nIf there is a JSON parsing error, or if the request is not of valid type, `ctx.request.body` is not set, and will be `undefined`. If the JSON request payload is too large (by [default](#options), the limit is `1mb`), a `413 Payload Too Large` error will be thrown.\n\nTo ensure `ctx.request.body` contains an empty object `{}` (rather than `undefined`) on missing/invalid payloads, you can set the [`fallback` option](#options) to `true`.\n\nInstallation\n------------\n\n```bash\nyarn add koa-json-body\n```\n\nor via npm:\n\n```bash\nnpm install koa-json-body --save\n```\n\nOptions\n-------\n\n* `fallback` - when set to `true`, `ctx.request.body` will always contain `{}` upon missing or invalid payloads. (default: `false`)\n* `limit` - number or string representing the request size limit (default: `1mb`)\n* `strict` - when set to `true`, koa-json-body will only accept arrays and objects. (default: `true`)\n\nAdditional options available via [co-body](https://github.com/cojs/co-body).\n\nUsage\n-----\n\nOn a every route:\n\n```javascript\nconst body = require('koa-json-body')\n\napp.use(body({ limit: '10kb', fallback: true }))\n\napp.use((ctx, next) => {\n  console.log(ctx.request.body)\n})\n```\n\nOn a per-route basis (this example uses [koa-router](https://github.com/alexmingoia/koa-router)):\n\n```javascript\nconst body = require('koa-json-body')({ limit: '10kb' })\n\napp.post('/users', body, (ctx, next) => {\n  console.log(ctx.request.body)\n})\n```\n\n\nTesting\n-------\n\nTo test, simply run\n\n```\nyarn test\n```\n\n\nMade for koa 2 and beyond\n-------------------------\n\nFor koa 0.x and 1.x support, see the [koa-1](https://github.com/venables/koa-json-body/tree/koa-1) branch.\n","maintainers":[{"name":"venables","email":"mattvenables@gmail.com"}],"time":{"modified":"2022-06-19T09:18:36.502Z","created":"2014-03-23T13:05:43.412Z","0.0.1":"2014-03-23T13:05:43.412Z","0.0.2":"2014-03-23T13:14:57.137Z","0.0.3":"2014-03-23T13:25:17.705Z","1.0.0":"2015-07-23T11:59:52.773Z","1.1.0":"2015-07-25T21:53:13.263Z","3.0.0":"2015-07-25T22:07:28.805Z","3.1.0":"2015-08-11T10:58:09.601Z","4.0.0":"2015-08-14T20:33:59.374Z","5.0.0-alpha.1":"2015-11-10T03:33:35.564Z","5.0.0":"2016-07-10T14:56:41.330Z","5.1.0":"2017-01-15T16:33:40.165Z","5.2.0":"2017-01-15T16:50:30.720Z","5.3.0":"2017-03-04T19:41:23.967Z"},"homepage":"https://github.com/venables/koa-json-body","keywords":["koa","middleware","request","parse","json"],"repository":{"type":"git","url":"git+https://github.com/venables/koa-json-body.git"},"author":{"name":"Matt Venables"},"bugs":{"url":"https://github.com/venables/koa-json-body/issues"},"license":"MIT","readmeFilename":"README.md","users":{"venables":true,"snowdream":true}}