core-assert

Node.js `assert` as a standalone module

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.
Last updated 6 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install core-assert 
SYNC missed versions from official npm registry.

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

Node.js assert as a standalone module (ponyfill)

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 first.

Install

$ npm install --save core-assert

Usage

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

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

Related

  • deep-strict-equal - Test for deep equality - Node.js assert.deepStrictEqual() algorithm as a standalone module

License

MIT © Sindre Sorhus

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

7 Versions

  • 1.0.0 [deprecated]           ...           6 years ago
  • 0.2.1                                ...           8 years ago
  • 0.2.0                                ...           9 years ago
  • 0.1.3                                ...           9 years ago
  • 0.1.2                                ...           9 years ago
  • 0.1.1                                ...           9 years ago
  • 0.1.0                                ...           9 years ago
Downloads
Total 4
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (0)
None
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE