0.4.4 • Published 4 months ago

@best-shot/validator v0.4.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@best-shot/validator

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

0.4.4

4 months ago

0.4.3

4 months ago

0.4.2

5 months ago

0.4.1

8 months ago

0.4.0

1 year ago

0.3.2

1 year ago

0.3.0

2 years ago

0.3.1

2 years ago

0.2.1

3 years ago

0.2.2

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

4 years ago