koa-404-handler

0.1.0 • Public • Published

koa-404-handler

build status code coverage code style styled with prettier made with lass license

404 handler for Lad and Koa (best used with koa-better-error-handler)

Table of Contents

Install

npm:

npm install koa-404-handler

yarn:

yarn add koa-404-handler

Usage

const errorHandler = require('koa-better-error-handler');
const koa404Handler = require('koa-404-handler');

// ...

// override koa's undocumented error handler
app.context.onerror = errorHandler;

// ... routes go here ...

app.use(koa404Handler);

app.listen();

Contributors

Name Website
Nick Baugh http://niftylettuce.com/

License

MIT © Nick Baugh

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1,125
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1,125
  • 0.0.2
    161
  • 0.0.1
    0

Package Sidebar

Install

npm i koa-404-handler

Weekly Downloads

1,286

Version

0.1.0

License

MIT

Unpacked Size

15.9 kB

Total Files

20

Last publish

Collaborators

  • niftylettuce
  • titanism