Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 659 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 659 Bytes

currency.js is a ridiculously tiny JavaScript library (< 1kb) for currency symbol formatting. It has zero dependencies, and works great as a NodeJS and AMD module.

Documentation

currency.symbolize(ISOCode)

> currency = require('./currency.js')
> currency.symbolize("USD")
'$'

> currency.symbolize("BGN")
'лв'

> currency.symbolize("MNT")
'₮'

Roadmap

  • Add localized symbols (to make a difference between USD and CAD for instance)
  • Maybe add an interface to playwell with accounting.js

Changelog

v1.0.0

  • Add missing symbols supported by openexchangerates (thanks to @nsue)

v0.0.1

  • First version is out !