0.5.0 • Published 10 months ago

@best-shot/validator v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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.5.0

10 months ago

0.4.4

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.2

2 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.1

4 years ago

0.2.2

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago