cc-textparser
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

cc-textparser

A reimplementation of CrossCode's text parser.

Usage

pnpm i cc-textparser
import { TextParser } from "cc-textparser";

const parser = new TextParser();
parser.registerCommand("u", true, (text) => text.toUpperCase());

parser.parse("Hello \\u[world]!");
// => "Hello WORLD!"

See more examples in examples/

/cc-textparser/

    Package Sidebar

    Install

    npm i cc-textparser

    Weekly Downloads

    2

    Version

    1.1.0

    License

    BSD-3-Clause

    Unpacked Size

    5.78 MB

    Total Files

    12

    Last publish

    Collaborators

    • redstonekasi