simple-assert-ok
A lightweight strongly-typed
assert.ok
helper which aims to avoid using entireassert
when need to use only oneok
method.,assert
uses CJS module system and in many cases cannot be optimized by bundlers, as a result, a bundle includes entireassert
.
Installation
npm install simple-assert-ok --save
or
yarn add simple-assert-ok
Usage
assert(expression[, message])
- @param {any} expression
- @param {string} message
;asserttrue, "is valid";assertfalse, "is invalid";
License and Copyright
This software is released under the terms of the MIT license.