# hissyfit

> Go on, throw one

Latest version **0.1.1** (published 2017-02-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install hissyfit
pnpm add hissyfit
yarn add hissyfit
bun add hissyfit
```

## 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.1 |
| Published | 2017-02-28 |
| First published | 2017-02-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zenparsing |
| Maintainers | zenparsing |

## Links

- npm: https://www.npmjs.com/package/hissyfit
- npm.io page: https://npm.io/package/hissyfit

## Recent versions

- 0.1.1 (latest) — 2017-02-28
- 0.1.0 — 2017-02-28

## README

# hissyfit

Really simple Error constructor for Javascript.

## Install

```sh
npm install hissyfit
```

## Why?

Because this looks so ugly:

```js
throw Object.assign(new Error('Oops we haz problem'), {
  name: 'StrangeError',
  status: 500,
  detail: quirkyState,
});
```

Instead, this:

```js
import Err from 'hissyfit';

throw new Err({
  name: 'NiceError',
  message: 'Broken but beautiful',
  status: 500,
  detail: quirkyState,
});
```

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