Price Tag
A library for formatting currency based on currency code aswell as language codes. This library is designed to be small and fast but it sacrifices on initialization time and data readability. Therefore it is best practise to initialize the currency library as early as possible.
Installation
npm i price-tag
Usage
// fill library with dataconst formatter = PriceTagData // set the language and currency codeslet options = formatter // localize a value - number, showSymbol, show '.00'let localizedAmount = formatter console // €1.234,00