A drop-in replacement for `assert` with a better default message.
JavaScript
Permalink
Failed to load latest commit information.
.gitignore insist Dec 11, 2013
.jshintrc insist Dec 11, 2013
.travis.yml remove node 0.8 test target, add 0.12 Sep 14, 2015
LICENSE insist Dec 11, 2013
README.md augment message for all assertions Dec 14, 2013
insist.js insist now uses decorate('ok') Jan 8, 2014
package.json v1.0.0 Sep 14, 2015
test.js augment message for all assertions Dec 14, 2013

README.md

insist

Build Status NPM version

A drop-in replacement for assert, with a better default message.

var assert = require('insist');

// AssertionError: assert(3 instanceof Function);
assert(3 instanceof Function);

//plus all properties of assert
assert.equal(foo, bar); // AssertionError: "baz" == "quux" from assert.equal(foo, bar);
assert.ok();
assert.deepEqual();
// etc...

Also, turn off these assertions with NO_ASSERT=1 env var.