@best-shot/validator
v0.4.4
Published
Config validator of 'best-shot'
Downloads
291
Maintainers
Readme
@best-shot/validator
Config validator of 'best-shot'.
Schema
- JSON Schema draft-07
- formats:
regex
- keywords:
instanceof/transform/uniqueItemProperties
Installation
npm install @best-shot/validator --save-dev
Usage
import { validate } from '@best-shot/validator';
validate({ data, schema })
.then((result) => {
console.log(result);
})
.catch((error) => {
console.warn(error.detail);
});