Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/core-assert
Node.js `assert` as a standalone module
https://github.com/sindresorhus/core-assert
deprecated
Last synced: 9 days ago
JSON representation
Node.js `assert` as a standalone module
- Host: GitHub
- URL: https://github.com/sindresorhus/core-assert
- Owner: sindresorhus
- License: mit
- Archived: true
- Created: 2015-09-28T07:36:05.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2021-01-23T08:53:10.000Z (about 4 years ago)
- Last Synced: 2024-10-29T22:38:22.483Z (3 months ago)
- Topics: deprecated
- Language: JavaScript
- Size: 15.6 KB
- Stars: 26
- Watchers: 7
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
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)