Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bejs

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bejs

Simple, light-weight assertions framework for javascript

  • 1.7.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.5K
increased by421.65%
Maintainers
2
Weekly downloads
 
Created
Source

to be, or not to be, that is the question

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');

// call a method
be.boolean(true);

// call interface "not"
be.not.boolean(1);

// call interface "all" and passing arguments
be.all.boolean(true, false, true);

// call interface "all" and passing array
be.all.boolean([true, false, true]);

// call interface "any" and passing arguments
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

Keywords

FAQs

Package last updated on 22 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc