Naphthalene Possum Management

    inkmbt

    1.0.3 • Public • Published

    inkmbt

    Format numbers in Twitter like formats, thousands in K, millions in M and Trillions in T.

    Quick start

    Installation

    npm i inkmbt

    Usage

    1. Use via ES6 import
    import inkmbt from "inkmbt"
     
    console.log(inkmbt(1000)) // "1k"
    console.log(inkmbt(10000)) // "10k"
    console.log(inkmbt(100000)) // "100k"
    1. Use via CommonJs syntax
    let inkmbt = require("inkmbt")
     
    console.log(inkmbt(1000)) // "1k"
    console.log(inkmbt(10000)) // "10k"
    console.log(inkmbt(100000)) // "100k"

    Author

    Valentine Elum

    License

    MIT LICENSE

    Install

    npm i inkmbt

    DownloadsWeekly Downloads

    8

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    4 kB

    Total Files

    5

    Last publish

    Collaborators

    • vahlcode