Non-Production Machines

    @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" }

    Keywords

    none

    Install

    npm i @thoughtsunificator/command-processor

    DownloadsWeekly Downloads

    8

    Version

    1.0.11

    License

    MIT

    Unpacked Size

    1.23 MB

    Total Files

    47

    Last publish

    Collaborators

    • thoughtsunificator