simple-number-suffix
v1.0.0
Published
module that adds a suffix by rounding down the number.
Downloads
2
Readme
simple-number-suffix
module that adds a suffix by rounding down the number.
Installation
npm install simple-number-suffix
Usage (with CommonJS)
const filter = require('simple-number-suffix');
filter(999); // 999
filter(1234); // 1k
filter(1002928); // 1M
filter(2249284291); // 2G
filter(Number.MAX_SAFE_INTEGER); // 9P