1.1.1 • Published 7 years ago
zillion-expect v1.1.1
zillion-expect
Simple module for ensuring expected parameters exist
install
$ npm install zillion-expect
Usage
var expect = require("zillion-expect");
// The object you're testing
var options = {
example: "exists"
another: 5
};
expect.options(options, ["example", "another"]); // does nothing
expect.options(options, ["example", "another", "some_other_key"]); // errors because options["some_other_key"] is undefined
1.1.1
7 years ago
1.0.1
7 years ago
1.0.1-none.2
7 years ago
1.0.1-none.1
7 years ago
1.0.1-none.0
7 years ago