slack-rpg-addon-validator

1.1.1 • Public • Published

Slack RPG Official Add-on Validator

Build Status npm version Coverage Status

This provides a validator class that can be used to validate a Slack RPG Add On.

Example

const Validator = require('slack-rpg-addon-validator');

try {
  Validator.check(someJson);
} catch (error) {
  console.log(`someJson is not valid: ${error.message}`);
}

Validator.check()

Arguments

addon: {string|object} The JSON string/object to check

Return

true: returns a boolean true if validation is correct

Throws

Error: Throws an error if validation fails. error.message will contain what failed.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.10latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.10
1.1.00
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i slack-rpg-addon-validator

Weekly Downloads

0

Version

1.1.1

License

ISC

Last publish

Collaborators

  • shaunburdick