Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/component/assert

assert()
https://github.com/component/assert

Last synced: 13 days ago
JSON representation

assert()

Awesome Lists containing this project

README

        

# assert

C-style assertion lib.

## Example

With custom assertion message:

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

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

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

## License

MIT