This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

unless

0.1.1 • Public • Published

Unless

A JavaScript implementation of the Ruby unless conditional flow structure.

Installation

Installation is easy. Issue the following command from within your project directory:

npm install unless --save

Usage

To use this module within your project, simply add it into the desired files and use it like so:

var unless = require('unless')

unless(thingToTestTruthinessOf, fn);

Using an example:

var unless = require('unless')

unless(true, function() { console.log('This will not get called.'); });
unless(false, function() { console.log('This will get called!'); });

Tests

To run the test suite, use npm test.

License

MIT

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i unless

    Weekly Downloads

    22

    Version

    0.1.1

    License

    none

    Last publish

    Collaborators

    • akiva