JSPM

  • Created
  • Published
  • Downloads 983
  • Score
    100M100P100Q97917F
  • License MIT

Command line arguments parser and stringifier

Package Exports

  • parameters

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

Readme

Build Status

npm install parameters

Node.js Parameters is sugar for parsing typical unix command line options.

  • Standard and commands-based command lines (eg git-pull ... or git pull ...)
  • Reversibility: read and write arguments is bi-directional
  • Auto-discovery: extract unregistered options
  • Unlimited/multi level commands (eg myapp server start ...)
  • Type conversion ('string', 'boolean', 'integer', 'array')
  • Object literals: config and parsed results are serializable and human readable
  • Routing: run dedicated functions or modules based on user commands
  • Auto generated help
  • Complete tests coverages plus samples

Documentation