Skip to content

An interface for various checks with ability to stringify to the readable format.

License

Notifications You must be signed in to change notification settings

extremeprog-com/this-is

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

An interface for various checks with ability to stringify to the readable format.

Installation

npm install --save this-is

Append to project

nodejs

var thisIs = require('this-is');

browser

<script type="text/javascript" src="[path to node modules]/this-is/index.js"></script>

Usage

var gt5 = thisIs.gt(5);
JSON.stringify(gt5); // {$check: {gt: 5}}
gt5.check(6); // true
gt5.check(4); // false

var btw10and100 = thisIs.btw(10, 100);
JSON.stringify(btw10and100); // {$check: {btw: [10, 100]}}
btw10and100.check(0); // false
btw10and100.check(50); // true
btw10and100.check(150); // false

About

An interface for various checks with ability to stringify to the readable format.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published