simple-assert-ok
v1.0.4
Published
A lightweight strongly-typed assert.ok
Downloads
17
Maintainers
Readme
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
import assert from "simple-assert-ok";
assert(true, "is valid");
assert(false, "is invalid");
License and Copyright
This software is released under the terms of the MIT license.