{"_id":"koa-404-handler","_rev":"4-768de3a7335523b21cbb8a9dde561094","name":"koa-404-handler","description":"404 handler for Lad and Koa (best used with koa-better-error-handler)","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"koa-404-handler","description":"404 handler for Lad and Koa (best used with koa-better-error-handler)","version":"0.0.1","author":{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"},"bugs":{"url":"https://github.com/ladjs/koa-404-handler/issues","email":"niftylettuce@gmail.com"},"contributors":[{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"}],"dependencies":{},"devDependencies":{"ava":"^0.22.0","codecov":"^2.3.0","cross-env":"^5.0.5","eslint":"^4.5.0","eslint-config-prettier":"^2.3.0","eslint-plugin-prettier":"^2.2.0","husky":"^0.14.3","lint-staged":"^4.0.4","nyc":"^11.1.0","prettier":"^1.6.1","remark-cli":"^4.0.0","remark-preset-github":"^0.0.6","xo":"^0.19.0"},"engines":{"node":">=6.4"},"homepage":"https://github.com/ladjs/koa-404-handler","keywords":["lad","koa","404","handler","error","middleware","ctx","koa-404-handler","lass"],"license":"MIT","lint-staged":{"*.{js,jsx,mjs,ts,tsx,css,less,scss,json,graphql}":["prettier --write --single-quote --trailing-comma none","git add"],"*.md":["remark . -qfo","git add"]},"main":"index.js","remarkConfig":{"plugins":["preset-github"]},"repository":{"type":"git","url":"git+https://github.com/ladjs/koa-404-handler.git"},"scripts":{"coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","lint":"xo && remark . -qfo","precommit":"lint-staged && npm test","test":"npm run lint && npm run test-coverage","test-coverage":"cross-env NODE_ENV=test nyc ava"},"xo":{"extends":"prettier","plugins":["prettier"],"parserOptions":{"sourceType":"script"},"rules":{"prettier/prettier":["error",{"singleQuote":true,"bracketSpacing":true,"trailingComma":"none"}],"max-len":["error",{"code":80,"ignoreUrls":true}],"capitalized-comments":"off","camelcase":"off","no-warning-comments":"off"},"space":true},"gitHead":"48316f4c593b8851e667fe7a6d2e09727aa60e60","_id":"koa-404-handler@0.0.1","_npmVersion":"5.4.1","_nodeVersion":"8.3.0","_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"dist":{"integrity":"sha512-Dna2Cxx0wACKD0zC179cu5PPZ8PpEfG6Uf2DuqzyYN0niwkHOtkm1x80bX5Q9LJQGtemw4mN2SXib2qWq1HrKQ==","shasum":"c23f9578bbe99d2c3539e42bf9855766e79dde64","tarball":"https://registry.npmjs.org/koa-404-handler/-/koa-404-handler-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrVfE4YdGkIrjrHXVoKiMqFBX+1HZoEXMGgZ02ElA82QIhAMSnlGTYLyuzyG7aVkdTv0Nxb5yk+acgmVYY07U8kWxO"}]},"maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-404-handler-0.0.1.tgz_1505278856615_0.7262042437214404"},"directories":{}},"0.0.2":{"name":"koa-404-handler","description":"404 handler for Lad and Koa (best used with koa-better-error-handler)","version":"0.0.2","author":{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"},"bugs":{"url":"https://github.com/ladjs/koa-404-handler/issues","email":"niftylettuce@gmail.com"},"contributors":[{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"}],"dependencies":{},"devDependencies":{"ava":"^0.22.0","babel-cli":"^6.26.0","babel-preset-env":"^1.6.1","boom":"^7.1.1","codecov":"^2.3.0","cross-env":"^5.0.5","eslint":"^4.5.0","eslint-config-prettier":"^2.3.0","eslint-plugin-prettier":"^2.2.0","husky":"^0.14.3","koa":"^2.4.1","koa-router":"^7.3.0","lint-staged":"^4.0.4","nyc":"^11.1.0","prettier":"^1.6.1","remark-cli":"^4.0.0","remark-preset-github":"^0.0.6","supertest":"^3.0.0","xo":"^0.19.0"},"engines":{"node":">=6.4"},"homepage":"https://github.com/ladjs/koa-404-handler","keywords":["lad","koa","404","handler","error","middleware","ctx","koa-404-handler","lass"],"license":"MIT","lint-staged":{"*.{js,jsx,mjs,ts,tsx,css,less,scss,json,graphql}":["prettier --write --single-quote --trailing-comma none","git add"],"*.md":["remark . -qfo","git add"]},"main":"lib/index.js","remarkConfig":{"plugins":["preset-github"]},"repository":{"type":"git","url":"git+https://github.com/ladjs/koa-404-handler.git"},"scripts":{"coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","lint":"xo && remark . -qfo","precommit":"lint-staged && npm test","test":"npm run build && npm run lint && npm run test-coverage","test-coverage":"cross-env NODE_ENV=test nyc ava","build":"babel src --out-dir lib","watch":"babel src --watch --out-dir lib"},"xo":{"extends":"prettier","plugins":["prettier"],"parserOptions":{"sourceType":"script"},"rules":{"prettier/prettier":["error",{"singleQuote":true,"bracketSpacing":true,"trailingComma":"none"}],"max-len":["error",{"code":80,"ignoreUrls":true}],"capitalized-comments":"off","camelcase":"off","no-warning-comments":"off"},"space":true},"gitHead":"4b3f8d5a1cc07ef07545082069d3d6098faa6ad2","_id":"koa-404-handler@0.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.0","_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"dist":{"integrity":"sha512-F6s31QjJCfDK/amVWQBC9q77x/Fuf5/lspVkiyklrRZ2KzNPk247AEvuVRguyYlGP7mKSHeX+DDwAguP84kcmQ==","shasum":"a6b4350099560fb3042db3e57a39094b661bc558","tarball":"https://registry.npmjs.org/koa-404-handler/-/koa-404-handler-0.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICjsayJTf3cZSMDR7ebrMzPfKUOOHRRjfQJ1066CiUfGAiEA7gWGkM1J0g8XFhVtqeFr60cVasPoGBYSFoRB8P1H3g0="}]},"maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-404-handler-0.0.2.tgz_1514767541922_0.5206001936458051"},"directories":{}},"0.1.0":{"name":"koa-404-handler","description":"404 handler for Lad and Koa (best used with koa-better-error-handler)","version":"0.1.0","author":{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"},"bugs":{"url":"https://github.com/ladjs/koa-404-handler/issues","email":"niftylettuce@gmail.com"},"contributors":[{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"}],"dependencies":{},"devDependencies":{"ava":"^3.15.0","babel-cli":"^6.26.0","babel-preset-env":"^1.7.0","boom":"^7.3.0","codecov":"^3.8.3","cross-env":"^7.0.3","eslint":"^8.3.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","husky":"^7.0.4","koa":"^2.13.4","koa-router":"^10.1.1","lint-staged":"^12.1.2","nyc":"^15.1.0","prettier":"^2.5.0","remark-cli":"^10.0.1","remark-preset-github":"^4.0.1","supertest":"^6.1.6","xo":"^0.47.0"},"engines":{"node":">=6.4"},"homepage":"https://github.com/ladjs/koa-404-handler","keywords":["lad","koa","404","handler","error","middleware","ctx","koa-404-handler","lass"],"license":"MIT","lint-staged":{"*.{js,jsx,mjs,ts,tsx,css,less,scss,json,graphql}":["prettier --write --single-quote --trailing-comma none","git add"],"*.md":["remark . -qfo","git add"]},"main":"lib/index.js","remarkConfig":{"plugins":["preset-github"]},"repository":{"type":"git","url":"https://github.com/ladjs/koa-404-handler"},"scripts":{"coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","lint":"xo && remark . -qfo","precommit":"lint-staged && npm test","test":"npm run build && npm run lint && npm run test-coverage","test-coverage":"cross-env NODE_ENV=test nyc ava","build":"node_modules/.bin/babel src --out-dir lib","watch":"node_modules/.bin/babel src --watch --out-dir lib"},"xo":{"extends":"prettier","plugins":["prettier"],"parserOptions":{"sourceType":"script"},"rules":{"prettier/prettier":["error",{"singleQuote":true,"bracketSpacing":true,"trailingComma":"none"}],"max-len":["error",{"code":80,"ignoreUrls":true}],"capitalized-comments":"off","camelcase":"off","no-warning-comments":"off","unicorn/prefer-module":"off"},"space":true},"licenseText":"MIT License\n\nCopyright (c) 2017 Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"koa-404-handler@0.1.0","dist":{"shasum":"470e957c93f063f6c20acd15ec3f1393f25d2cba","integrity":"sha512-3AuIGL1vlIXCJaNDSLhPmMuDFoiYSzkemyq9NwU0NdHG/j9yh3TM4+8IB6kgAWHDuz0hYargPZrpfcb3THFfuQ==","tarball":"https://registry.npmjs.org/koa-404-handler/-/koa-404-handler-0.1.0.tgz","fileCount":20,"unpackedSize":15896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqe7NCRA9TVsSAnZWagAAJGQQAIfaqNnp0ckCbVqkqqb6\nUpJeEklUrSAeDIVaFE9dGI7OeYdvqzOKIPJLTHxivKCuqkKGu25H3BlKLwnM\njKtDNzmrOmNXDDlrLw729SXCp2i7RhenwJwQlc8I/T8aklqlV6qMwcD2Krv9\nfTPdIJZIkGbXhaqVPKwAu/019sd9FjjL64eovduUyqwqK5tuQpU8kXDsxYMs\nLdFfuBQgnxDvPwxVi9XwEEz/6WLzuuasDDgnUPyGUChjAw+nddpMmHlkjMwv\ns/PNny6aEgyoT6cK7yTCN9/vPQEY/826Yq/Yn7TkAOXFIu3jQrtMONsIr8Ni\nI/VbTt0twNNpu46GilIC215NRQ+Li40BVHeKuLa3wpr/+ww1hNKTN59lMPiG\nmMDc4PxXK90T+sDT/b5qjLlNhF7Gxh12AAZv2jBVDsrGsKwbVCk5HeQzlbi5\nmdAnRRm9maiomhiwXojc1MQdcgnJACEbMrHt9U/XkLIgIGM/d8Ppv5ZOUSU+\n+ZWBnwcZk93wx/yRfr3hTODqvqdGSey4ETEJv66654TjTHya589ILOasl14J\nB24kgZV9U3JsQjyBTwuXFDc8nvXQ8qxsysDj+qRVIYCn0XxbaA6y1I6QfmCW\nE33chunTNkNcTutRq6HeHeA+w69DUCqQDdNtVHkwpThZ1MxuN+lNWltuDMm9\nRGUE\r\n=Js2I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFUyk4hUcVUseOZbQIDl0ojvqm2GEEs2mUC79Fa3K9q4AiEA4MZFYkXeSvilcYxDOHNQsEyemNWvfTdZ/RxrCm0lAZ0="}]},"_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"directories":{},"maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-404-handler_0.1.0_1638526668982_0.46967398734882493"},"_hasShrinkwrap":false}},"readme":"# koa-404-handler\n\n[![build status](https://img.shields.io/travis/ladjs/koa-404-handler.svg)](https://travis-ci.org/ladjs/koa-404-handler)\n[![code coverage](https://img.shields.io/codecov/c/github/ladjs/koa-404-handler.svg)](https://codecov.io/gh/ladjs/koa-404-handler)\n[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)\n[![license](https://img.shields.io/github/license/ladjs/koa-404-handler.svg)]()\n\n> 404 handler for [Lad][] and [Koa][] (best used with [koa-better-error-handler][])\n\n\n## Table of Contents\n\n* [Install](#install)\n* [Usage](#usage)\n* [Contributors](#contributors)\n* [License](#license)\n\n\n## Install\n\n[npm][]:\n\n```sh\nnpm install koa-404-handler\n```\n\n[yarn][]:\n\n```sh\nyarn add koa-404-handler\n```\n\n\n## Usage\n\n```js\nconst errorHandler = require('koa-better-error-handler');\nconst koa404Handler = require('koa-404-handler');\n\n// ...\n\n// override koa's undocumented error handler\napp.context.onerror = errorHandler;\n\n// ... routes go here ...\n\napp.use(koa404Handler);\n\napp.listen();\n```\n\n\n## Contributors\n\n| Name           | Website                    |\n| -------------- | -------------------------- |\n| **Nick Baugh** | <http://niftylettuce.com/> |\n\n\n## License\n\n[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)\n\n\n##\n\n[npm]: https://www.npmjs.com/\n\n[yarn]: https://yarnpkg.com/\n\n[lad]: https://lad.js.org\n\n[koa]: http://koajs.com\n\n[koa-better-error-handler]: https://github.com/ladjs/koa-better-error-handler\n","maintainers":[{"email":"niftylettuce@gmail.com","name":"niftylettuce"},{"email":"npm@titanism.com","name":"titanism"}],"time":{"modified":"2022-05-07T09:34:21.101Z","created":"2017-09-13T05:00:57.818Z","0.0.1":"2017-09-13T05:00:57.818Z","0.0.2":"2018-01-01T00:45:42.906Z","0.1.0":"2021-12-03T10:17:49.126Z"},"homepage":"https://github.com/ladjs/koa-404-handler","keywords":["lad","koa","404","handler","error","middleware","ctx","koa-404-handler","lass"],"repository":{"type":"git","url":"https://github.com/ladjs/koa-404-handler"},"contributors":[{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"}],"author":{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"},"bugs":{"url":"https://github.com/ladjs/koa-404-handler/issues","email":"niftylettuce@gmail.com"},"license":"MIT","readmeFilename":"README.md"}