JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q50037F
  • License MIT

Extra functionality for commander including environment variables and notes

Package Exports

  • commander-extras

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 (commander-extras) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Commander-Extras

Extremely small utility which adds additional functionality to the Commander NPM module.

var commander = require('commander');
var commanderExtras = require('commander-extras');

var program = commander
    .option('-v, --verbose', 'Be verbose')
    .env('FOO', 'FOO Environment variable desription')
    .env('BAR', 'BAR Environment variable desription')
    .env('BAZ', 'FOO environment variable desription')
    .note('Note one')
    .note('Note two')
    .note('Note three')
    .parse(process.argv);

API

The following API's are added to the existing Commander prototype:

env(name, description)

Used to define an environment variable.

note(description)

Add an additional note to display at the bottom of the help output.