# koa-404-handler

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

Latest version **0.1.0** (published 2021-12-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install koa-404-handler
pnpm add koa-404-handler
yarn add koa-404-handler
bun add koa-404-handler
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2021-12-03 |
| First published | 2017-09-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.4 |
| Dependencies | 0 |
| Unpacked size | 15.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Nick Baugh |
| Maintainers | niftylettuce |
| Keywords | lad, koa, 404, handler, error, middleware, ctx, koa-404-handler, lass |

## Links

- npm: https://www.npmjs.com/package/koa-404-handler
- Repository: https://github.com/ladjs/koa-404-handler
- Issues: https://github.com/ladjs/koa-404-handler/issues
- npm.io page: https://npm.io/package/koa-404-handler

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2021-12-03
- 0.0.2 — 2018-01-01
- 0.0.1 — 2017-09-13

## README

# koa-404-handler

[![build status](https://img.shields.io/travis/ladjs/koa-404-handler.svg)](https://travis-ci.org/ladjs/koa-404-handler)
[![code coverage](https://img.shields.io/codecov/c/github/ladjs/koa-404-handler.svg)](https://codecov.io/gh/ladjs/koa-404-handler)
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)
[![license](https://img.shields.io/github/license/ladjs/koa-404-handler.svg)]()

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


## Table of Contents

* [Install](#install)
* [Usage](#usage)
* [Contributors](#contributors)
* [License](#license)


## Install

[npm][]:

```sh
npm install koa-404-handler
```

[yarn][]:

```sh
yarn add koa-404-handler
```


## Usage

```js
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](LICENSE) © [Nick Baugh](http://niftylettuce.com/)


##

[npm]: https://www.npmjs.com/

[yarn]: https://yarnpkg.com/

[lad]: https://lad.js.org

[koa]: http://koajs.com

[koa-better-error-handler]: https://github.com/ladjs/koa-better-error-handler

---
_Source: https://npm.io/package/koa-404-handler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
