# core-assert

> Node.js `assert` as a standalone module

Latest version **1.0.0** (published 2018-11-08) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-11-08 |
| First published | 2015-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Unpacked size | 14.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26 |
| Author | Sindre Sorhus |
| Maintainers | jamestalmage, sindresorhus, vdemedes |
| Keywords | builtin, core, ponyfill, polyfill, shim, assert, assertion, test, testing, deep, strict, equal, equality, eq, same |

## Links

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

## Dependencies (2)

- [is-error](https://npm.io/package/is-error.md) ^2.2.0
- [buf-compare](https://npm.io/package/buf-compare.md) ^1.0.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-11-08
- 0.2.1 — 2016-09-30
- 0.2.0 — 2016-04-20
- 0.1.3 — 2015-12-14
- 0.1.2 — 2015-12-14
- 0.1.1 — 2015-11-04
- 0.1.0 — 2015-09-28

## README

# Deprecated

I don't have time or interest in keeping it in sync with Node.js anymore. It should continue to work fine though. It's just missing some improvements from later Node.js versions.

---

# core-assert [![Build Status](https://travis-ci.org/sindresorhus/core-assert.svg?branch=master)](https://travis-ci.org/sindresorhus/core-assert)

> Node.js [`assert`](https://nodejs.org/api/assert.html) as a standalone module *([ponyfill](https://ponyfill.com))*

Useful to ensure consistency between Node.js versions as the `assert` module has changed a lot.

Lets you use the Node.js 4.0 `assert.deepStrictEqual()`/`assert.notDeepStrictEqual()` methods all the way back to Node.js 0.10.

*Issues and improvements should be done in [Node.js](https://github.com/nodejs/node/issues) first.*


## Install

```
$ npm install --save core-assert
```


## Usage

```js
var assert = require('core-assert');

assert.strictEqual('unicorn', 'unicorn');
```


## Related

- [deep-strict-equal](https://github.com/sindresorhus/deep-strict-equal) - Test for deep equality - Node.js `assert.deepStrictEqual()` algorithm as a standalone module


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)

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