6.0.0 • Published 5 years ago
hebo-validation v6.0.0
hebo-validation
validation functions for hebo-js
Table of Contents
Install
npm:
npm install hebo-validation
yarn:
yarn add hebo-validation
Usage
const { validateEvent, InvalidEventError } = require('hebo-validation');
try {
validateEvent(event);
} catch (err) {
if (err instanceof InvalidEventError) {
// ...
}
}
// script
Contributors
Name |
---|
Steve Caldwell |
License
MIT © Steve Caldwell