
to be, or not to be, that is the question
Simple, light-weight assertions framework for javascript
More than 190 validation methods
Installation
Node.js
npm install bejs --save
Browser
Local
CDN unpkg
CDN jsDeliver
Example
const be = ; // call a methodbe; // call interface "not"benot; // call interface "all" and passing argumentsbeall; // call interface "all" and passing arraybeall; // call interface "any" and passing argumentsbeany; // call interface "err" to throw an error if assertions are not satisfiedbeerr; // throw AssertionError // call interface "err" passing a custom error messagebe; // throw AssertionError // call others interfaces from "err"beerrany;
As unit test with Mocha
;
Documentation
Changelog
You can view the changelog here
License
beJS is open-sourced software licensed under the MIT license