Simple, light-weight assertions framework for javascript
More than 170 assertions
Installation
Node.js
npm install bejs --save
Browser
Local
<script src="node_modules/bejs/dist/be.min.js"></script>
CDN unpkg
<script src="https://unpkg.com/bejs/dist/be.min.js"></script>
CDN jsDeliver
<script src="https://cdn.jsdelivr.net/npm/bejs/dist/be.min.js"></script>
Example
const be = require('bejs');
be.boolean(true);
be.not.boolean(1);
be.all.boolean(true, false, true);
be.all.boolean([true, false, true]);
be.any.boolean(true, false, 1);
Documentation
See https://be.js.org
Changelog
You can view the changelog here
License
beJS is open-sourced software licensed under the MIT license
Author
Fabio Ricali
Davide Polano