yarg-scripts

0.0.3 • Public • Published

yarg-scripts

Automatically load git-style subcommand pattern with yargs

Usage

First install yarg-scripts as usual:

yarn add yarg-scripts or npm install --save yarg-scripts

Then set your bin directive in your package.json to point to yarg-scripts:

...
  "bin"{
    "<your command name>": "./node_modules/yarg-scripts/index.js"
  },
...

Now, create a directory called scripts, and fill it with javascript files that export configuration for yargs subcommands as specified by yarg's command function.

See yargs command documentation for more details.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    3
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i yarg-scripts

Weekly Downloads

3

Version

0.0.3

License

MIT

Unpacked Size

2.26 kB

Total Files

6

Last publish

Collaborators

  • brysgo1