4.3.3 • Published 3 years ago

@abdevs/console-manager v4.3.3

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

Console Manager

banner

A library to manage and add console commands. You can easily take command and arguments from command line.

Support

Join our Discord Server for any support related queries.

Setup

Install the library with npm i @abdevs/console-manager.

const { addCommand, init } = require('@abdevs/console-manager');

addCommand({
  command: 'do-something',
  handler: async (args, command) => {
    //Do Something
  },
  description: 'This command does something',
  aliases: ['something-do'],
  completers: [['1', '2'], ['add', 'sub'], async () => ['yes', 'no']],
});

init({
  //Options
});

Option Properties

Property NameDefaultDescription
isHelpCommandfalseAdd a default help command

Command Properties

Property NameDefaultDescription
command*Command for the handler to execute
handler*Function that will be execute on command
descriptionNo description providedString Description of the command
aliases[]String Array of as aliases
completersFunction => string[] | string[][]Array of function(s) that returns a string array or an array of string arrays

* Property is required

Terms and Conditions

This Repository only available for code look up and personal use.

You are not allowed to steal the code from this repository.

4.3.3

3 years ago

4.3.2

3 years ago

4.2.2

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.4.3

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago