isf

isfridge

Check if anything is a fridge!

Showing:

Popularity

Downloads/wk

2

GitHub Stars

2

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

isFridge

Painstakingly written over years and years of work by Connor McFarlane.

CircleCI

Installation

$ npm i isfridge -s
var isFridge = require('isfridge');

Usage

isFridge(x)

Takes one value to compare, returns a promise, boolean on resolve, error on reject.

isFridge.isFridge("fridge")
    .then(function(fridge) {
        if(fridge) {
            console.log("It is a fridge!")
        } else {
            console.log("It is not a fridge!")
        }
        // It is a fridge!
    });

isNotFridge(x)

Takes one value to compare, returns a promise, boolean on resolve, error on reject.

isFridge.isNotFridge("not fridge")
    .then(function(fridge) {
        if(fridge) {
            console.log("It is not a fridge!")
        } else {
            console.log("It is a fridge!")
        }
        // It is not a fridge!
    });

couldBeFridge(x)

Takes one value to compare, returns a promise, boolean on resolve, error on reject.

isFridge.couldBeFridge("not fridge")
    .then(function(fridge) {
        if(fridge) {
            console.log("It could be a fridge!")
        } else {
            console.log("It still could be a fridge!")
        }
        // It could be a fridge!
        // OR
        // It still could be a fridge!
    });

Test

Unit tests are run through mocha.

Running unit tests

$ npm test

https://connormcf.com

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100