An open API service indexing awesome lists of open source software.

https://github.com/squirrel-forge/node-terminal

A node commandline abstraction, application wrapper and commands
https://github.com/squirrel-forge/node-terminal

Last synced: about 1 year ago
JSON representation

A node commandline abstraction, application wrapper and commands

Awesome Lists containing this project

README

          

# 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](https://github.com/squirrel-forge/node-terminal) for extensive comments.