@jadesrochers/checksettings

0.1.3 • Public • Published

Check Settings

Checks whether a settings object has the settings defined by and.

Whats the Use?

I found that I kept using code along these lines for checking arguments, so
I split it out into a little package.

installation

npm install @jadesrochers/checksettings

const check = require('@jadesrochers/checksettings')

Usage

let reqArray = ['names','of','keys','to','check']
let inputfail = {actual:1, object:2, passed:3, as:4, input:5}
let inputpass = {names:1, of:2, keys:3, to:4, check:5}
check.checkSettings(reqArray, inputfail)
false
check.checkSettings(reqArray, inputpass)
true 

Readme

Keywords

none

Package Sidebar

Install

npm i @jadesrochers/checksettings

Weekly Downloads

0

Version

0.1.3

License

Apache-2.0

Unpacked Size

4.37 kB

Total Files

7

Last publish

Collaborators

  • jadesrochers