ladjs/koa-404-handler

Name: koa-404-handler

Owner: Lad

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

Created: 2017-09-13 04:50:45.0

Updated: 2017-11-30 12:27:33.0

Pushed: 2018-01-01 01:49:01.0

Homepage: https://lad.js.org

Size: 135

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:

install koa-404-handler

yarn:

 add koa-404-handler
Usage
t errorHandler = require('koa-better-error-handler');
t koa404Handler = require('koa-404-handler');

..

verride koa's undocumented error handler
context.onerror = errorHandler;

.. routes go here ...

use(koa404Handler);

listen();
Contributors

| Name | Website | | ————– | ————————– | | Nick Baugh | http://niftylettuce.com/ |

License

MIT © Nick Baugh


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.