Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ecb-currency_converter
Advanced tools
Currency Conversion using the European Central Bank's Euro foreign exchange reference rates. All calculations are performed and returned in +BigDecimal+.
Add this line to your application's Gemfile:
gem 'ecb-currency_converter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ecb-currency_converter
To convert between two currencies:
ECB::CurrencyConverter.exchange(100, 'EUR', 'USD').to_f
=> 133.74
ECB::CurrencyConverter.exchange(100, 'USD', 'EUR').to_f
=> 74.77194556602363
To convert between two currencies using historical data:
date = Date.parse('2013-05-17')
ECB::CurrencyConverter.exchange(100, 'EUR', 'USD', date).to_f
=> 128.69
ECB::CurrencyConverter.exchange(100, 'USD', 'EUR', date).to_f
=> 77.70611547128759
To get the most recent exchange rate between two currencies:
ECB::CurrencyConverter.rate('EUR', 'USD').to_f
=> 1.3374
ECB::CurrencyConverter.rate('USD', 'EUR').to_f
=> 0.7477194556602362
To get the historical exchange rate between two currencies:
date = Date.parse('2013-05-17')
ECB::CurrencyConverter.rate('EUR', 'USD', date).to_f
=> 1.2869
ECB::CurrencyConverter.rate('USD', 'EUR', date).to_f
=> 0.777061154712876
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that ecb-currency_converter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.