JSPM

  • Created
  • Published
  • Downloads 78
  • Score
    100M100P100Q68427F
  • License ISC

Lightweight CLI-App maker with 0 dependencies 🚀.

Package Exports

  • cli-aid

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cli-aid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cli-aid

npm version npm downloads Install Size jest

Lightweight CLI-App maker with 0 dependencies 🚀.

Use

github demo/tinify-client-cli.js.

// demo/tinify-client-cli.js
const { CLI } = require('../src');

new CLI({ name: 'tinify-client-cli', version: '2.0.0' })
  .option('max-count', 'm', { defaultVal: 15, help: 'The max compressing turns. Default 15.' })
  .parse(process.argv.slice(2));

node demo/tinify-client-cli.js --h

tinify-client-cli/2.0.0

USAGE
 $ tinify-client-cli [OPTIONS]

OPTIONS
 --help, -h, -docs, -文档: Show this help information.
 --version, -v: Show the version information.
 --max-count, -m: The max compressing turns. Default 15.

node demo/tinify-client-cli.js --v

tinify-client-cli/2.0.0 darwin-x64 node-v12.8.1

READ more options in CLI.test.js and command in demo/tinify-client-cli.js.