Object Validator

A Javascript object validator for tiny schemas.

NPM

Test

Get started

 yarn add @mrbrunelli/object-validator

How to use

const Validate = require('@mrbrunelli/object-validator')

const objectExample = {
  foo: {
    bar: {
      message: 'Hello!'
    }
  }
}

const isValid = Validate.isValid(objectExample, ['foo', 'foo.bar.message'])
console.log(isValid) // returns true

GitHub

View Github