1.0.0 • Published 3 years ago

@space-ts/parser v1.0.0

Weekly downloads
-
License
LGPL-2.1-only
Repository
github
Last release
3 years ago

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

*/