
Research
/Security News
TensorLake npm SDK Compromised in ChainDrop Shai-Hulud Credential-Stealing Attack
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.
react-currency-conv
Advanced tools
React component for currency conversion. Supports fetching latest and historical currency exchange rate based on the input date alongwith specific precision.
React component for currency conversion. Supports fetching latest and historical currency exchange rate based on the input date alongwith specific precision.
npm install react-currency-conv --save
You can get the converted value as the output of the react component and style it according to your preference.
import React from 'react';
import CurrencyConverter from 'react-currency-conv';
export default class App extends React.Component {
render() {
return (
<div className="App">
<CurrencyConverter from={'USD'} to={'CAD'} value={29}/>
</div>
);
}
}
Specify a specific precision:
// 2234.67 (default)
<CurrencyConverter from={'USD'} to={'CAD'} value={29} precision={2}/>
// 78.2482
<CurrencyConverter from={'USD'} to={'CAD'} value={29} precision={4}/>
To get the exchange rate value form :-
// NOTE: The date should be in `YYYY-MM-DD` format
<CurrencyConverter from={'USD'} to={'CAD'} value={29} date={'2010-12-22'}/>
All other attributes are applied normally to the element. For example, you can integrate bootstrap styling as:
<CurrencyConverter from={'USD'} to={'CAD'} value={29} className="form-control"/>
| Option | Default Value | Description |
|---|---|---|
| date | 0 | The initial currency value |
| precision | 2 | Number of digits after the decimal separator |
| Code |
|---|
| INR |
| IDR |
| ILS |
| MXN |
| USD |
| ZAR |
| NZD |
| NOK |
| CNY |
| BGN |
| TRY |
| PLN |
| SGD |
| CHF |
| THB |
| JPY |
| HRK |
| RUB |
| BRL |
| CAD |
| HKD |
| ISK |
| PHP |
| DKK |
| HUF |
| CZK |
| RON |
| SEK |
| AUD |
| EUR |
| MYR |
| KRW |
| GBP |
FAQs
React component for currency conversion. Supports fetching latest and historical currency exchange rate based on the input date alongwith specific precision.
The npm package react-currency-conv receives a total of 22 weekly downloads. As such, react-currency-conv popularity was classified as not popular.
We found that react-currency-conv 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.

Research
/Security News
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.

Research
/Security News
Socket found 16 malicious Firefox extensions designed to steal crypto wallet recovery phrases and private keys using cloned Rabby and OKX interfaces.

Product
Socket now scans VS Code extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.