1.0.5 • Published 7 years ago

msjs v1.0.5

Weekly downloads
6
License
ISC
Repository
-
Last release
7 years ago

make-sure

Are you tired of those huge fucking validation libs that have thousands of features you don't give a shit about? Is 97% of your validation just about avoiding undefined?

I got you covered my friend!

let makeSure = require('msjs');
let theobject = undefined
makeSure(theobject).has('aproperty')
// [ '{} is undefined' ]

If it doesn't, you'll find out by checking the contents of the .errors-array on the return object of makeSure().

Nested objects? I THOUGHT YOU'D NEVER ASK!

makeSure(theobject).has('aproperty', aproperty => aproperty.has('afriend').has('twofriends'))
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago