Nested Parenthetical Madness

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

    1.0.1 • Public • Published


    Flagging

    A simple library to parse and process flags in JavaScript strings.

    Setup

    Yarn: yarn add flagging NPM: npm i flagging

    Example

    import * as flagging from "flagging";
     
    let res = flagging.process("--verbose -scale 22 --method fast", {
        parseNumbers: true
    })
     
    // Returns:
    {
        verbose["verbose"],
        scale["scale", 22],
        method["method", "fast"]
    }

    Contributions

    Contribute, steal, republish, I don't care! As long as my code gets some sort of use i'm happy.

    Keywords

    none

    Install

    npm i flagging

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    7.97 kB

    Total Files

    6

    Last publish

    Collaborators

    • blairspalace