Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koa-404-handler

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-404-handler

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

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

NameWebsite
Nick Baughhttp://niftylettuce.com/

License

MIT © Nick Baugh

Keywords

FAQs

Package last updated on 03 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc