npm i k-converter
const kconvert = require("k-converter");
//or
import kconvert from 'k-converter';
And with this capability, you're able to seamlessly translate float numbers into the K-metric, enhancing clarity and precision.
kconvert.convertTo(100500);
//'10.5k'
Additionally, it empowers you to effortlessly convert strings using the K-metric into float numbers, streamlining data interpretation and analysis.
kconvert.convertFrom("50.2k");
//50200