# @hndlr/errors

> JS-less NPM Package that builds on publish

Latest version **0.1.0** (published 2023-09-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install @hndlr/errors
pnpm add @hndlr/errors
yarn add @hndlr/errors
bun add @hndlr/errors
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2023-09-28 |
| First published | 2020-10-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 43.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Harry Wright |
| Maintainers | harrytwright |
| Keywords | http, errors |

## Links

- npm: https://www.npmjs.com/package/@hndlr/errors
- Repository: https://github.com/hndlr/errors
- Homepage: https://github.com/hndlr/errors#readme
- Issues: https://github.com/hndlr/errors/issues
- npm.io page: https://npm.io/package/@hndlr/errors

## Dependencies (1)

- [http-status-codes](https://npm.io/package/http-status-codes.md) ^2.3.0

## 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) — 2023-09-28
- 0.1.0-beta.1 (beta) — 2023-09-28
- 0.0.1-beta.2 — 2021-06-03
- 0.0.1-beta.1 — 2020-10-16

## README

# erred

`erred` is a JS-less NPM Package for `HTTPErrors` that builds on publish

## Usage

Import or require the errors and use them in place of your normal errors

```javascript
const { NotFound, BadRequest } = require('@hndlr/errors')

let error = new NotFound('...')
error.status // 404

error = new BadRequest('...')
error.status // 400
```

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