priceseparator
v1.3.0
Published
price separator
Downloads
4
Readme
Price Separator
small (3 lines) typesafe package to separate price digits with a custom separator !
Install 🚀
$ npm i priceseparator
Usage 🔥
import {priceSeparator} from 'priceseparator';
priceseparator(25000000, ',');
result -> 25,000,000
Notes 📖
- the default separator is ','
- rewrited in typescript with better batter variables name and types
- this is just for fun don't take it hard 😇