JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 413751
  • Score
    100M100P100Q12923F
  • License MIT

Node.js `assert` as a standalone module

Package Exports

  • core-assert

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (core-assert) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

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');
  • deep-strict-equal - Test for deep equality - Node.js assert.deepStrictEqual() algorithm as a standalone module

License

MIT © Sindre Sorhus