isbars

1.0.1 • Public • Published

Isbars

IsBars allows you to use english rather then symbols for writing if statements.

Examples

const is = require('isbars');
const args = { x: 2, y: 3 };
if(is("x bigger than y", args)) {
    console.log("This won't log as x is not bigger than y");
    // x is defined in the args object, so is y.
};
if(is("3 bigger than 2")) {
    console.log("This will log as 3 is bigger than 2");
};
// You can replace bigger with smaller for an reversed result.

Still in eraly beta!

Package Sidebar

Install

npm i isbars

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

3.66 kB

Total Files

4

Last publish

Collaborators

  • salvage_dev