Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A drop-in replacement for `assert` with a better default message.
JavaScript
Branch: master
Failed to load latest commit information.
.gitignore insist
.jshintrc insist
.travis.yml insist
LICENSE insist
README.md augment message for all assertions
insist.js insist now uses decorate('ok')
package.json v0.2.3
test.js augment message for all assertions

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.

Something went wrong with that request. Please try again.