approximate-number
approximate-number copied to clipboard
[Feature] Configuration object for abbreviation vs full word
In the configuration object, would be great if you could specify if the unit should be appreviated or written out. Example:
approx(10000) // 10k
approx(10000, { abbreviation: false }) // 10 thousand
That's a good idea, do you think you can send me a PR to implement it?
Bonus points if there's a way to provide translations for other languages (nothing more than English would need to be included, but support for other languages would be nice.)