meow-format v0.5.8
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
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago