Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
assert()
JavaScript CSS Other

Readme.md

assert

C-style assertion lib.

Example

With custom assertion message:

var assert = require('assert');
assert(expr, 'oh no it broke');

Or auto-generated assertion message in browsers that support Error.captureStackTrace():

var assert = require('assert');
assert(user.name == 'Tobi');

License

MIT

Something went wrong with that request. Please try again.