aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-assert/readme.md
blob: 8966899c15aae0b11fe1ba30c60b87a874d20322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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)