@space-ts/parser
v1.0.0
Published
Content Parsing for The Space Framework
Downloads
3
Maintainers
Readme
@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"} ]
}
*/