@squirrel-forge/node-terminal

2.0.3 • Public • Published

node-terminal

A node commandline abstraction, application wrapper and commands.

Installation

npm i @squirrel-forge/node-terminal

Usage

const { Class } = require( '@squirrel-forge/node-terminal' );

Classes

  • Application( options, init )
    • timer : Timer
    • options : Object
    • input : CliInput
    • progress : Progress
    • setInputProps( target, flags )
    • register ( constructor )
    • getCommandName( name )
    • getCommandInstance( constructor, options )
    • run( options, exit )
    • exit( code, time )
  • Command( app, options )
    • app : Application
    • options : Object
    • argData( index )
    • flagData( flag )
    • getDefaultString( def )
    • describe()
    • before()
    • fire()
  • HelpCommand( app ) extends Command
    • fire()

Docs

Check the sourcecode on github for extensive comments.

Package Sidebar

Install

npm i @squirrel-forge/node-terminal

Weekly Downloads

1

Version

2.0.3

License

MIT

Unpacked Size

30.8 kB

Total Files

15

Last publish

Collaborators

  • dasiux