@urbaninfrastructure/currency-formatter
v0.1.7
Published
## Usage
Downloads
18
Keywords
Readme
Currency formatting for urbansharing clients
Usage
const formatCurrency = require("@urbaninfrastructure/currency-formatter");
formatCurrency(100, { currency: "NOK" }); // => "NOK 100"
formatCurrency(100, { currency: "NOK", locale: "nb" }); // => "100 kr"
For more examples, see /__tests_/currency-formatter.js
Test
yarn
yarn test