orange-command

Orange.Command - generic functionality for CLI scripts

Usage no npm install needed!

<script type="module">
  import orangeCommand from 'https://cdn.skypack.dev/orange-command';
</script>

README

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.