@best-shot/validator

0.5.0 • Public • Published

@best-shot/validator logo

Config validator of 'best-shot'.

npm github node

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);
  });

Related

Package Sidebar

Install

npm i @best-shot/validator

Weekly Downloads

166

Version

0.5.0

License

MIT

Unpacked Size

4.3 kB

Total Files

4

Last publish

Collaborators

  • airkro