console-assert
Standardizer for node's console.assert
Last updated 11 years ago by qfox .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install console-assert 
SYNC missed versions from official npm registry.

console-assert

Simple console.assert polyfill for node since existing realization throws instead of printing error.

See:

Why?

Because when you trying to write polymorphic code you can't use console.assert in node env.

How to use?

Install module via npm:

npm i console-assert

Write this somewhere when you need it:

require('console-assert').browserify();

NB: Module patchs global console.assert and if you need to rollback behaviour you have to just run require('console-assert').restore();.

License

The MIT License

Current Tags

  • 1.0.0                                ...           latest (11 years ago)

1 Versions

  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 3
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE