0.5.8 • Published 6 months ago

meow-format v0.5.8

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

Hai :3

Uhh, to get right into how ye use da package is --ye can use it in Node.js or in da browser after installation by da following lines of code respectivly:

import meowFormat from "meow-format";
<script src="https://cdn.jsdelivr.net/npm/meow-format@0.5.8/index.js"></script>

Den to initalize it:

const meowFormatter = meowFormat({
    ["format"]: {},
    ["modifiers"]: []
});

It returns da formatter function by da way, all ye need to do after dat is:

meowFormatter(numberAsString);

By da way here's da interface for da initialization function:

interface options {
    ["format"]?: (
        "commas" |
        "abbreviation" |
        {
            ["name"]: "commasThenAbbreviation",
            ["configuration"]: {
                ["numberLengthThreashold"]: number
            }
        }
    ),
    ["modifiers"]?: Array<
        {
            ["name"]: "precision",
            ["parameters"]: {
                ["before"]?: number,
                ["after"]?: number
            }
        } |
        {
            ["name"]: "persistentZeros",
            ["parameters"]: {
                ["before"]?: number,
                ["after"]?: number
            }
        }
    >;
}

Have fun using meh spaghetti code!!! :33

0.5.8

6 months ago

0.5.7

6 months ago

0.5.6

6 months ago

0.5.5

6 months ago

0.5.4

6 months ago

0.5.3

6 months ago

0.5.2

6 months ago

0.5.1

6 months ago

0.5.0

6 months ago

0.4.8

6 months ago

0.4.7

6 months ago

0.4.6

6 months ago

0.4.5

6 months ago

0.4.4

6 months ago

0.4.3

6 months ago

0.4.2

6 months ago

0.4.1

6 months ago

0.4.0

6 months ago

0.3.9

6 months ago

0.3.8

6 months ago

0.3.7

6 months ago

0.3.6

6 months ago

0.3.5

6 months ago

0.3.4

6 months ago

0.3.3

6 months ago

0.3.2

6 months ago

0.3.1

6 months ago

0.3.0

6 months ago

0.2.9

6 months ago

0.2.8

6 months ago

0.2.7

6 months ago

0.2.6

6 months ago

0.2.5

6 months ago

0.2.4

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.9

6 months ago

0.1.8

6 months ago

0.1.7

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.18

6 months ago

0.1.17

6 months ago

0.1.16

6 months ago

0.1.15

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago