@urbaninfrastructure/currency-formatter

0.1.7 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @urbaninfrastructure/currency-formatter

Weekly Downloads

0

Version

0.1.7

License

UNLICENSED

Unpacked Size

2.79 kB

Total Files

3

Last publish

Collaborators

  • ghassenda
  • queses
  • romanyankovsky
  • yngve
  • norgepaul
  • p.fed
  • anna-maksimenko
  • tech-ops-urbansharing