1.0.0 • Published 3 years ago
@space-ts/parser v1.0.0
@space-ts/parser
Content Parsing for The Space Framework
This is a heavily modified version of the discord-akairo content parser
Usage
import { Parser } from "@space-ts/args";
const results = Parser.parse("396096412116320258 3h --reason \"you're bad\"", {
options: [ "--reason" ]
});
console.log("results")
/*
{
"phrases": [ { value: "396096412116320258", raw: "396096412116320258" }, { value: "3h", raw: "3h"} ]
}
*/
1.0.0
3 years ago