@royalschedule/input-verifier
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

Input verifier

A script that verifies the structure of the json input to be processed by the scheduling algorithm.

Installation

npm i -S @royalschedule/input-verifier

Usage

import { verify } from '@royalschedule/input-verifier';

// analyze the json input
const result = verify({ ... });

if (result.valid) {
  console.log('Valid input 🎉');
} else {
  console.log(`${result.errors.length} error(s) found`);
}

Readme

Keywords

none

Package Sidebar

Install

npm i @royalschedule/input-verifier

Weekly Downloads

423

Version

4.0.0

License

none

Unpacked Size

436 kB

Total Files

236

Last publish

Collaborators

  • blomquist
  • andersson-royalschedule