Socket
Socket
Sign inDemoInstall

currency-symbol.js

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    currency-symbol.js

currency symbols library


Version published
Weekly downloads
488
increased by35.18%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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 !

Keywords

FAQs

Last updated on 26 Aug 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc