@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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    1
  • 0.1.0
    0
  • 0.0.1
    1

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