1.3.1 • Published 6 years ago

console-sovereign v1.3.1

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Author

Developed by Shree Krishna Suwal.

Example Usage

import Consoler from 'consoler-sovereign'

let consoler = new Consoler()
.default(options => {
  console.log('running default command...');
  console.log(options);
})
.command('manga', () => console.log('downloading manga'))
.extend('kissmanga', () => console.log('this is kissmanga...'))
.option('link', {alias: 'l'}).option('all', {alias:'a',type:'boolean'})
.orphan('manga_name', 0, { type:'string', alias:'ma' })
.run()

Terminologies

Following are the terms that you should be familiar with before getting started:

  • command
  • option
  • orphan

Command

It is a string representing a command. Example: dl or download for a command that might perform download action.

option

It's a type of 'option' which requires its name to be specified to provide its value. Example:

--link https://www.youtube.com

orphan

It's a type of 'option' which does not require its name to be specified to provide its value. Example:

download https://www.youtube.com/something

Here download is a command and https://www.youtube.com/something is an option that doesn't need any name (which i call it an orphan).

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.2.1

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago