node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org ยป



Chainable validation based on validator, lodash, moment and type-detect with syntax almost looks like chai.js combine with sync or async report and non 'throw' ing things around so that you don't have to 'try' and 'catch'.


npm install seeif


seeIf([], {collective:true})
    .fi(function(err, errors) {
        if(err) {
            //Do something with `err`, or with multiple errors gathered in `errors`.
        } else {
            //All passed, continue.
var result = unless({})
if(result) {
    throw result;
} else {
    console.log("Plain object is neither undefined nor Null");


Sorry, document is unavailable at the moment. Will make up to you latter.


+ isAtMost(inclusiveMax) 
+ isAtLeast(inclusiveMMin) 
+ isBelow(exclusiveMax) 
+ isAbove(exclusiveMin) 
+ isBetween(lowerBound, upperBound): exclusive bounds 
+ isWithin(lowerBound, upperBound): inclusive bounds 
+ not getter 
+ is getter 
+ eliminate all the 'is' in function names 
+ fix meaningless function names 
+ improve rationale in naming functions. (like is.Function, not.beFunction)