1.3.0 • Published 4 years ago
priceseparator v1.3.0
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 😇