@thoughtsunificator/command-processor

1.0.11 • Public • Published

command-processor

Command processor

Getting started

Installing

  • npm install @thoughtsunificator/command-processor

Usage

import { Processor } from "@thoughtsunificator/command-processor"

const processor = new Processor([
  new Command("foo <arg>", "somedata"),
  new Command("bar <arg1>", "somedata2")
])

processor.run("/foo myArg") // outputs { data: "somedata", args: "myArg" }

Readme

Keywords

none

Package Sidebar

Install

npm i @thoughtsunificator/command-processor

Weekly Downloads

0

Version

1.0.11

License

MIT

Unpacked Size

1.23 MB

Total Files

47

Last publish

Collaborators

  • thoughtsunificator