npm

@best-shot/validator

0.4.4 • 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

54

Version

0.4.4

License

MIT

Unpacked Size

4.31 kB

Total Files

4

Last publish

Collaborators

  • airkro