1.1.1 • Published 8 years ago

must-have v1.1.1

Weekly downloads
138
License
ISC
Repository
github
Last release
8 years ago

must-have

what?

A little module to mandate properties on a object. Will throw error if listed property is not present.

install

npm install must-have --save

use

var mustHave = require('must-have'); mustHave(myObject, "name", "email"); mustHave(myObject, "works.with.nested.properties");