@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

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @best-shot/validator

    Weekly Downloads

    65

    Version

    0.4.4

    License

    MIT

    Unpacked Size

    4.31 kB

    Total Files

    4

    Last publish

    Collaborators

    • airkro