New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

currency_data

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currency_data

  • 1.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

CurrencyData

Information about currencies.

This RubyGem comes with a JSON file containing information about all ISO currencies.

Usage

nzd = CurrencyData.find("NZD")
nzd.iso_code #=> "NZD"
nzd.name #=> "New Zealand Dollar"
nzd.symbol #=> "$"
nzd.alternate_symbols #=> ["NZ$"]
nzd.subunit #=> "Cent"
nzd.subunit_to_unit #=> 100
nzd.symbol_first #=> true
nzd.html_entity #=> "$"
nzd.decimal_mark #=> "."
nzd.thousands_separator #=> ","
nzd.iso_numeric #=> "554"

Kudos

Thanks to the Money Gem contributors for maintaining this JSON file.

FAQs

Package last updated on 21 Jul 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc