JSPM

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

command-line-tool

Package Exports

  • command-line-tool

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

Readme

view on npm npm module downloads per month Build Status Dependency Status js-standard-style

command-line-tool

Some conventional operations used in command-line tools.

Example

const tool = require('command-line-tool')

tool.stop(exitCode, [options])

Stop the process with the supplied exit code.

Kind: static method of command-line-tool

Param Type Description
exitCode number the exit code
[options] object
[options.message] string | Array.<string> One or more messages to be written to stderr before exiting. If the exit code is greater than 0 they will be formatted red.
[options.usage] string Usage guidance, written to stderr without additional formatting.

© 2015 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.