Nybble Processing Mainframe
Miss any of our Open RFC calls?Watch the recordings here! »

assert-keys

1.0.0 • Public • Published

assert-keys

asserts that some keys are present in an object

install

npm i assert-keys

example

var checkConfig = require('assert-keys')(['port', 'api_url']);
 
checkConfig({port: 8000, api_url: 'http://localhost:1234'}); // doesn't throw
checkConfig({port: 8000}); // throws!

Keywords

none

Install

npm i assert-keys

DownloadsWeekly Downloads

1

Version

1.0.0

License

none

Last publish

Collaborators

  • avatar