@fyresite/object-validator
v0.1.3
Published
### Install ```javascript npm i @fyresite/object-validator ```
Downloads
2
Keywords
Readme
object-validator
Install
npm i @fyresite/object-validator
Example
import objectValidator from '@fyresite/object-validator';
const validateObj = {
"method": "matches",
"pattern": "[a-z]",
"modifiers": "i"
};
let valid = objectValidator(validateObj, 'lowercase'); // true
let invalid = objectValidator(validateObj, 'UPPERCASE'); // false