0.1.1 • Published 2 years ago

orange-command v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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.