1.1.1 • Published 8 years ago

slack-rpg-addon-validator v1.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

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.

1.1.1

8 years ago

1.1.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago