0.3.2 • Published 3 years ago

@chookscord/validate v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@chookscord/validate

Small Discord interaction validation library.

Usage

Returns null for passing tests, returns a string when failing.

import { testCommandName, testDescription } from './src';

testCommandName('valid-name'); // OK: null
testCommandName('Invalid Name'); // FAIL: error message

testDescription('Short description.'); // OK
testDescription('Just imagine this is over 100 chars.'); // FAIL

// And a few other tests.
0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago