@batterii/yeoman-validators

0.2.0 • Public • Published

@batterii/yeoman-validators

A library of validator functions to use for Yeoman generator prompts. Each returns either true or an error message string, as specified by Inquirer.js, the CLI library Yeoman uses to display its prompts.

Generally, validation logic for generators should live in the generators themselves, but in some cases similar options must be provided to more than one generator. To avoid duplicating the logic, place any such validators in here.

To see a list of validators, check out the API docs.

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i @batterii/yeoman-validators

    Weekly Downloads

    2

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    1.6 kB

    Total Files

    3

    Last publish

    Collaborators

    • sripberger