orange-command

0.1.1 • Public • Published

Orange.Command

This library provides generic functionality for command-line scripts.

Hello world example

const {OrangeCommand} = require('orange-command')

class HelloWorld extends OrangeCommand {
  async action () {
    this.c.line('Hello world!')
  }
}

HelloWorld.run().then()

Functionality

Parent class provides functionality to format output, receive input, perform validation, etc.

You can find examples in example directory.

Readme

Keywords

Package Sidebar

Install

npm i orange-command

Weekly Downloads

0

Version

0.1.1

License

ISC

Unpacked Size

27.1 kB

Total Files

13

Last publish

Collaborators

  • charger88