validation functions for hebo-js
npm:
npm install hebo-validation
yarn:
yarn add hebo-validation
const { validateEvent, InvalidEventError } = require('hebo-validation');
try {
validateEvent(event);
} catch (err) {
if (err instanceof InvalidEventError) {
// ...
}
}
// script
Name |
---|
Steve Caldwell |
MIT © Steve Caldwell