cc-textparser
v1.1.0
Published
A reimplementation of CrossCode's text parser
Downloads
5
Maintainers
Readme
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/