Skip to content

HTTPS clone URL

Subversion checkout URL

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

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
History.md
Makefile
Readme.md
component.json
example.html
example.js
index.js

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.