1.0.4 • Published 3 years ago

simple-assert-ok v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

simple-assert-ok

GitHub license npm version Travis (.com) master npm downloads npm bundle size (minified) npm bundle size (minified + gzip)

A lightweight strongly-typed assert.ok helper which aims to avoid using entire assert when need to use only one ok method., assert uses CJS module system and in many cases cannot be optimized by bundlers, as a result, a bundle includes entire assert.

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.

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.0

6 years ago