msjs

1.0.5 • Public • Published

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'))

Readme

Keywords

none

Package Sidebar

Install

npm i msjs

Weekly Downloads

3

Version

1.0.5

License

ISC

Last publish

Collaborators

  • peterhel