Nocturnal Practitioners of Magic

    k-convert

    1.0.6 • Public • Published

    k-convert

    Install

    npm i k-convert

    Usage

    const kconvert = require("k-convert");
    //or
    import kconvert from 'k-convert';

    And then, you are able to convert float numbers to the k-metric:

    kconvert.convertTo(420500);
    //'420.5k'

    Or convert strings using the k-metric to float numbers:

    kconvert.convertFrom("23.2k");
    //23200

    Install

    npm i k-convert

    DownloadsWeekly Downloads

    604

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    2.26 kB

    Total Files

    3

    Last publish

    Collaborators

    • margato