simple-assert-ok
v1.0.4
Published
A lightweight strongly-typed assert.ok
Maintainers
Readme
simple-assert-ok
A lightweight strongly-typed
assert.okhelper which aims to avoid using entireassertwhen need to use only oneokmethod.,assertuses 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 --saveor
yarn add simple-assert-okUsage
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.
