{"maintainers":[{"email":"jonathanrichardong@gmail.com","name":"jongleberry"},{"email":"doug@somethingdoug.com","name":"dougwilson"},{"email":"eivind.fjeldstad@gmail.com","name":"eivifj"}],"keywords":["assert","http"],"dist-tags":{"latest":"1.3.0"},"description":"assert with status codes","readme":"# http-assert\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nAssert with status codes. Like ctx.throw() in Koa, but with a guard.\n\n## Example\n```js\nvar assert = require('http-assert');\nvar ok = require('assert');\n\ntry {\n  assert(username == 'fjodor', 401, 'authentication failed');\n} catch (err) {\n  ok(err.status == 401);\n  ok(err.message == 'authentication failed');\n  ok(err.expose);\n}\n```\n\n## Licence\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/http-assert.svg\n[npm-url]: https://npmjs.org/package/http-assert\n[node-version-image]: https://img.shields.io/node/v/http-assert.svg\n[node-version-url]: https://nodejs.org/en/download/\n[travis-image]: https://img.shields.io/travis/jshttp/http-assert/master.svg\n[travis-url]: https://travis-ci.org/jshttp/http-assert\n[coveralls-image]: https://img.shields.io/coveralls/jshttp/http-assert/master.svg\n[coveralls-url]: https://coveralls.io/r/jshttp/http-assert\n[downloads-image]: https://img.shields.io/npm/dm/http-assert.svg\n[downloads-url]: https://npmjs.org/package/http-assert\n","repository":{"type":"git","url":"git+https://github.com/jshttp/http-assert.git"},"users":{"goodseller":true},"bugs":{"url":"https://github.com/jshttp/http-assert/issues"},"license":"MIT","versions":{"0.0.1":{"name":"http-assert","version":"0.0.1","description":"assert with status codes","scripts":{"test":"node test"},"repository":{"type":"git","url":"https://github.com/eivindfjeldstad/http-assert.git"},"license":"MIT","_id":"http-assert@0.0.1","dist":{"shasum":"1d870e3adb43103347e5ef3b60320dcf974fd2b7","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/http-assert/-/http-assert-0.0.1.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},"maintainers":[{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"}],"directories":{}},"0.1.0":{"name":"http-assert","version":"0.1.0","description":"assert with status codes","scripts":{"test":"node test"},"repository":{"type":"git","url":"https://github.com/eivindfjeldstad/http-assert.git"},"license":"MIT","bugs":{"url":"https://github.com/eivindfjeldstad/http-assert/issues"},"homepage":"https://github.com/eivindfjeldstad/http-assert","_id":"http-assert@0.1.0","dist":{"shasum":"564ebea60402de58b1b9cbba7881ea44128aba2c","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/http-assert/-/http-assert-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},"maintainers":[{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"}],"directories":{}},"0.1.1":{"name":"http-assert","version":"0.1.1","description":"assert with status codes","devDependencies":{"mocha":"~1.17.0"},"repository":{"type":"git","url":"https://github.com/eivindfjeldstad/http-assert.git"},"license":"MIT","bugs":{"url":"https://github.com/eivindfjeldstad/http-assert/issues"},"homepage":"https://github.com/eivindfjeldstad/http-assert","_id":"http-assert@0.1.1","dist":{"shasum":"5dcecfcb81b4ad7b7e59f0276cc156e898cc336c","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/http-assert/-/http-assert-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},"maintainers":[{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"}],"directories":{}},"1.0.0":{"name":"http-assert","version":"1.0.0","description":"assert with status codes","devDependencies":{"mocha":"~1.17.0"},"repository":{"type":"git","url":"https://github.com/eivindfjeldstad/http-assert.git"},"license":"MIT","bugs":{"url":"https://github.com/eivindfjeldstad/http-assert/issues"},"homepage":"https://github.com/eivindfjeldstad/http-assert","_id":"http-assert@1.0.0","dist":{"shasum":"978520c354c33fc92907bf91f5fb2a7a102f291b","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/http-assert/-/http-assert-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},"maintainers":[{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"}],"directories":{}},"1.0.1":{"name":"http-assert","version":"1.0.1","description":"assert with status codes","devDependencies":{"mocha":"~1.17.0"},"repository":{"type":"git","url":"https://github.com/eivindfjeldstad/http-assert.git"},"license":"MIT","bugs":{"url":"https://github.com/eivindfjeldstad/http-assert/issues"},"homepage":"https://github.com/eivindfjeldstad/http-assert","_id":"http-assert@1.0.1","dist":{"shasum":"8213171b6cbf7249f11651319956856e2e3d8171","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/http-assert/-/http-assert-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},"maintainers":[{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"}],"directories":{}},"1.0.2":{"name":"http-assert","version":"1.0.2","description":"assert with status codes","devDependencies":{"istanbul":"~0.3.0","mocha":"~1.17"},"repository":{"type":"git","url":"git://github.com/jshttp/http-assert"},"files":["LICENSE","index.js"],"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"keywords":["assert","http"],"dependencies":{"http-errors":"~1.2.0"},"bugs":{"url":"https://github.com/jshttp/http-assert/issues"},"homepage":"https://github.com/jshttp/http-assert","_id":"http-assert@1.0.2","_shasum":"a8e1328daee559bdffede8a8f787b36043bc1421","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},"maintainers":[{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"dist":{"shasum":"a8e1328daee559bdffede8a8f787b36043bc1421","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/http-assert/-/http-assert-1.0.2.tgz"},"directories":{}},"1.1.0":{"name":"http-assert","version":"1.1.0","description":"assert with status codes","devDependencies":{"istanbul":"~0.3.0","mocha":"2"},"repository":{"type":"git","url":"https://github.com/jshttp/http-assert"},"files":["LICENSE","index.js"],"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"keywords":["assert","http"],"dependencies":{"deep-equal":"~0.2.1","http-errors":"~1.2.0"},"license":"MIT","gitHead":"ad5884da96e667105f0153928b1bb7d876e6dfe0","bugs":{"url":"https://github.com/jshttp/http-assert/issues"},"homepage":"https://github.com/jshttp/http-assert","_id":"http-assert@1.1.0","_shasum":"b78219e3a81748a1d42041bff16e8dfef9d7fc67","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.11.14","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"dist":{"shasum":"b78219e3a81748a1d42041bff16e8dfef9d7fc67","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/http-assert/-/http-assert-1.1.0.tgz"},"directories":{}},"1.1.1":{"name":"http-assert","version":"1.1.1","description":"assert with status codes","devDependencies":{"istanbul":"~0.3.0","mocha":"2"},"repository":{"type":"git","url":"https://github.com/jshttp/http-assert"},"files":["LICENSE","index.js"],"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"keywords":["assert","http"],"dependencies":{"deep-equal":"~1.0.0","http-errors":"~1.3.1"},"license":"MIT","gitHead":"cdab4cd462364eed2b06fa0777fc55b8e5200264","bugs":{"url":"https://github.com/jshttp/http-assert/issues"},"homepage":"https://github.com/jshttp/http-assert","_id":"http-assert@1.1.1","_shasum":"6b08a0798262a507dc886b73be64af040c67c099","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"dist":{"shasum":"6b08a0798262a507dc886b73be64af040c67c099","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/http-assert/-/http-assert-1.1.1.tgz"},"directories":{}},"1.2.0":{"name":"http-assert","version":"1.2.0","description":"assert with status codes","devDependencies":{"istanbul":"~0.4.2","mocha":"2"},"repository":{"type":"git","url":"git+https://github.com/jshttp/http-assert.git"},"files":["LICENSE","index.js"],"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"keywords":["assert","http"],"dependencies":{"deep-equal":"~1.0.0","http-errors":"~1.4.0"},"license":"MIT","gitHead":"be8c2268af7a21c61f2a4051f6f6e2b80d95b747","bugs":{"url":"https://github.com/jshttp/http-assert/issues"},"homepage":"https://github.com/jshttp/http-assert#readme","_id":"http-assert@1.2.0","_shasum":"d6392e6f6519def4e340266b35096db6d3feba00","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"dist":{"shasum":"d6392e6f6519def4e340266b35096db6d3feba00","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/http-assert/-/http-assert-1.2.0.tgz"},"maintainers":[{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/http-assert-1.2.0.tgz_1456610007473_0.975123000331223"},"directories":{}},"1.3.0":{"name":"http-assert","description":"assert with status codes","version":"1.3.0","license":"MIT","keywords":["assert","http"],"repository":{"type":"git","url":"git+https://github.com/jshttp/http-assert.git"},"dependencies":{"deep-equal":"~1.0.1","http-errors":"~1.6.1"},"devDependencies":{"istanbul":"0.4.5","mocha":"2.5.3"},"files":["LICENSE","index.js"],"engines":{"node":">= 0.8"},"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"7b0514b847bea05715f2b59784c85681b54295e5","bugs":{"url":"https://github.com/jshttp/http-assert/issues"},"homepage":"https://github.com/jshttp/http-assert#readme","_id":"http-assert@1.3.0","_shasum":"a31a5cf88c873ecbb5796907d4d6f132e8c01e4a","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"dist":{"shasum":"a31a5cf88c873ecbb5796907d4d6f132e8c01e4a","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/http-assert/-/http-assert-1.3.0.tgz"},"maintainers":[{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/http-assert-1.3.0.tgz_1494220385564_0.8246503779664636"},"directories":{}}},"name":"http-assert","time":{"modified":"2017-07-22T18:54:26.781Z","created":"2013-12-24T01:19:06.044Z","0.0.1":"2013-12-24T01:19:07.875Z","0.1.0":"2014-01-05T21:46:34.987Z","0.1.1":"2014-01-14T01:25:28.772Z","1.0.0":"2014-01-21T01:42:13.860Z","1.0.1":"2014-01-21T01:54:17.159Z","1.0.2":"2014-09-10T05:40:25.631Z","1.1.0":"2014-12-10T17:52:06.109Z","1.1.1":"2015-02-15T00:30:01.343Z","1.2.0":"2016-02-27T21:53:30.135Z","1.3.0":"2017-05-08T05:13:07.530Z"},"readmeFilename":"README.md","homepage":"https://github.com/jshttp/http-assert#readme"}