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