# reassert

> Assertion library that is feature-rich yet minimalistic.

Latest version **1.1.21** (published 2018-12-11) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.21 |
| Published | 2018-12-11 |
| First published | 2017-10-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 16.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | brillout |

## Links

- npm: https://www.npmjs.com/package/reassert
- Repository: https://github.com/brillout/reassert
- Homepage: https://github.com/brillout/reassert#readme
- Issues: https://github.com/brillout/reassert/issues
- npm.io page: https://npm.io/package/reassert

## Dependencies (1)

- [@brillout/format-text](https://npm.io/package/@brillout/format-text.md) ^0.1.3

## Recent versions

- 1.1.21 (latest) — 2018-12-11
- 1.1.20 — 2018-12-04
- 1.1.19 — 2018-10-25
- 1.1.18 — 2018-10-24
- 1.1.17 — 2018-10-24
- 1.1.16 — 2018-10-22
- 1.1.15 — 2018-09-02
- 1.1.14 — 2018-08-02
- 1.1.13 — 2018-07-06
- 1.1.12 — 2018-06-06
- 1.1.11 — 2018-06-01
- 1.1.10 — 2018-05-30
- 1.1.9 — 2018-05-24
- 1.1.8 — 2018-04-21
- 1.1.7 — 2018-04-12
- … 14 more at https://npm.io/package/reassert/versions

## README

This is an old Readme and lot's of features are missing documentation.


I assail my code with assertions and sometimes an assertion is wrong while the code itself is fine.


For these cases I don't want assert to stop execution in production.


Still, an exception is thrown in a `setTimeout` so that error logging can still be used.


In dev (`window.location.hostname==='localhost'` or `process.env['NODE_ENV'] !== 'production'`) `require('reassert')` behaves like expected and stops execution.


Check the source code for more information, it's only couples of lines.

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