JSPM

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

Renders a simple help instruction based on your package.json manifest.

Package Exports

  • simhelp

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

Readme

Sim Help NPM version GitHub version

With SimHelp you can render a simple help instruction based on your package.json manifest.

Install

$ npm install simhelp

Usage

// Init Config
var help = require('simhelp'),
    pkg  = require('./package');

// Program Information
var pnm   = pkg.name,               // => Sim Help
    ver   = pkg.version,            // => 0.1.4
    desc  = pkg.description,        // => Generate a simple help based on your package.json manifest.
    aut   = pkg.author.name,        // => Vitor Britto
    lic   = pkg.license,            // => MIT
    cmd   = '<foo> <bar>';          // => <foo> <bar>

// Show Help
help
    .main(pnm, ver, desc, cmd)
    .head('Options:')
    .option('h', 'help', 'output help message')
    .option('v', 'version', 'output the version number')
    .head('Commands:')
    .command('foo', 'this is the first command')
    .command('bar', 'this is the second command')
    .details(aut, lic);

RETURN

-----------------------------------------------------------------
Sim Help - v0.1.0
Renders a simple help based on your package.json manifest.
-----------------------------------------------------------------

Usage: simhelp <foo> <bar> [options]

Options:
    -h, --help      output usage information
    -v, --version   output the version number

Commands:
    foo             this is the first command
    bar             this is the second command

Copyright (c) Vitor Britto
Licensed under the MIT license
-----------------------------------------------------------------

License

MIT License © Vitor Britto