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

Package Sidebar

Install

npm i k-convert

Weekly Downloads

29

Version

1.0.6

License

MIT

Unpacked Size

2.26 kB

Total Files

3

Last publish

Collaborators

  • margato