New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

isfridge

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isfridge

Check if anything is a fridge!

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

fridge

FAQs

Package last updated on 25 Feb 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