
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
currency-exchange-rate
Advanced tools
Completely free NPM library to get realtime Currency Exchange Rate
NPM library to get realtime Currency Exchange Rate from Yahoo Finance Website. This library uses axios under the hood to make HTTP Call to Yahoo Finance.
fromCurrency
and toCurrency
are two mandatory properties for config
parameter of getCurrencyExchangeRate(config, callbackFunction(exchangeRateValue, error))
function. The currency symbols are ISO 4217 Currency Codes. You must pass valid values for these 2 config properties, otherwise the library function will retun error.
You can optionally use any of the axios request config along with fromCurrency
and toCurrency
If you are using the library behind a coporate proxy please refer axios request config properties link on how to set your proxy settings.
var currencyExchangeRate = require("currency-exchange-rate");
//Using a Promise.
currencyExchangeRate.getCurrencyExchangeRate({ fromCurrency: "USD", toCurrency: "INR" }).then(function (exchangeRateValue) {
console.log(exchangeRateValue);
}).catch((error) => {
console.log(error);
});
//Using a callback function.
currencyExchangeRate.getCurrencyExchangeRate({ fromCurrency: "USD", toCurrency: "INR" }, function (exchangeRateValue, error) {
if (error) {
console.error(error);
}
else {
console.log(exchangeRateValue);
}
});
FAQs
Completely free NPM library to get realtime Currency Exchange Rate
The npm package currency-exchange-rate receives a total of 31 weekly downloads. As such, currency-exchange-rate popularity was classified as not popular.
We found that currency-exchange-rate 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.