assert-strict

0.0.2 • Public • Published

node assert is deprecated in favour of assert.strict, but commonjs-assert doesn't support strict mode. Get the strictest assert possible today!

instead of:

import assertModule from 'assert';
 
const assert = assertModule.strict || assertModule;

in every test just do this:

npm install --save-dev 'assert-strict'
import assert from 'assert-strict';

The contents of this module are as follows:

module.exports=function(a){return a.strict||a}(require('assert'));

Package Sidebar

Install

npm i assert-strict

Weekly Downloads

100

Version

0.0.2

License

MIT

Unpacked Size

1.29 kB

Total Files

3

Last publish

Collaborators

  • graingert