Nashville Plays Music

    discord-arg-validator
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0 • Public • Published

    discord-arg-validator

    Argument type validator for Discord bots

    Installation

    npm i discord-arg-validator

    Usage

    const { validate, Number, YesNo, String } = require("discord-arg-validator");
     
    validate(["foo", "bar", "2", "yes", "no"], [String, String, Number, YesNo, YesNo]) //true
    validate(["foo", "bar", "23"], [Number, Number, YesNo]) // TypeError

    Install

    npm i discord-arg-validator

    DownloadsWeekly Downloads

    3

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    4.51 kB

    Total Files

    15

    Last publish

    Collaborators

    • shadowtime2000