# assert-strict

> node `assert` is deprecated in favour of `assert.strict`, but `commonjs-assert` doesn't support strict mode. Get the strictest assert possible today!

Latest version **0.0.2** (published 2018-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install assert-strict
pnpm add assert-strict
yarn add assert-strict
bun add assert-strict
```

## 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.0.2 |
| Published | 2018-09-14 |
| First published | 2018-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Thomas Grainger |
| Maintainers | graingert |
| Keywords | assert, strict, commonjs, browser |

## Links

- npm: https://www.npmjs.com/package/assert-strict
- Repository: https://github.com/graingert/assert-strict
- Homepage: https://github.com/graingert/assert-strict#readme
- Issues: https://github.com/graingert/assert-strict/issues
- npm.io page: https://npm.io/package/assert-strict

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-09-14
- 0.0.1 — 2018-09-14
- 0.0.0 — 2018-09-14

## README

node `assert` is deprecated in favour of `assert.strict`, but `commonjs-assert`
doesn't support strict mode. Get the strictest assert possible today!

instead of:

```js
import assertModule from 'assert';

const assert = assertModule.strict || assertModule;
```

in every test just do this:

```shell
npm install --save-dev 'assert-strict'
```

```js
import assert from 'assert-strict';
```


The contents of this module are as follows:
```js
module.exports=function(a){return a.strict||a}(require('assert'));
```

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