really-bad-command-framework
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

really-bad-command-framework

npm

A capable, type-safe, BSD-2 licensed text-based command library. It's modeled around Minecraft's command system.

Usage

This library is quite strongly opinionated, and some of the concepts can be a little difficult to understand at first.

Nodes

A command is made up of a chain of command nodes. These nodes:

  • have a name and description
  • have an immutable array of arguments (see below)
  • have a condition that determines whether
  • have an execute method that accepts values for the defined arguments
  • have a next method that, given argument values, provides the next node in the chain

Arguments

Arguments are very important - they're responsible for parsing the input string and turning the values into something more useful.

Readme

Keywords

none

Package Sidebar

Install

npm i really-bad-command-framework

Weekly Downloads

66

Version

0.2.3

License

BSD-2-Clause

Unpacked Size

35.3 kB

Total Files

41

Last publish

Collaborators

  • lucypoulton