A collection of formatting tool, useful for formatting strings, numbers, and currency.
We are in the beginning stages of this project. Currently, there are minimal tools for formatting strings, numbers, and currency (USD ONLY), but we will be adding more in the near future!
Full typescript support! :)
To use with node:
$ npm install fo-matters --save
const fo = ;
ES6 and above:
(note that using
latest is taking a significant risk that fo-matters API changes could break your code.)
// Stringsfo// ===> 'alph'fo// ===> 'alph123'fo// ===> falsefomaxLength'alph@123' 4// ===> 'alph'fo// ===> 'Alph@123'// Numbersfo// ===> '91,234.56'fo// ===> '91,235'fo// ===> 91234.56// Currency (USD ONLY)fo// ===> '$91,234.56'fo// ===> '$91,235'fo// ===> 91234.56
Thanks to Bryan Ricci! License MIT.