1.0.0 • Published 6 years ago
verim v1.0.0
verim
A minimal assertion library
Install
$ npm install verim
Usage
const verim = require('verim');
verim(false, 'unicorns & rainbows');
//=> 'unicorns & rainbows'
API
verim(boolean, message, strict)
boolean
Type: boolean
If not true an error will be thrown
message
Type: string
The error message
strict
Type: boolean
Default: true
If set to true
an error will be thrown else the message
will be logged to stderr.
License
MIT © Tobias Herber