
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
crypto-convert
Advanced tools
Convert crypto to fiat and vice-versa instantly.
npm i crypto-convert
import convert from 'crypto-convert';
Or with require
, import it like this to get TypeScript:
const convert = require("crypto-convert").default;
(async function(){
await convert.ready(); //Cache is not yet loaded on first start
convert.BTC.USD(1);
convert.ETH.JPY(255);
convert.LINK.LTC(5);
convert.USD.CRO(100);
//More readable syntax
new convert.from("BTC").to("USD").amount(1);
})();
convert.setOptions({
crypto_interval: 5000, //Crypto prices update interval, default every 5 seconds
fiat_interval: (60 * 1e3 * 60), //Fiat prices update interval, default every 1 hour
calculateAverage: true, //Calculate the average crypto price from exchanges
binance: true, //Use binance rates
bitfinex: true, //Use bitfinex rates
coinbase: true, //Use coinbase rates
onUpdate: (tickers, isFiat?)=> any //Callback on every crypto update
});
<script src='https://coinconvert.net/assets/js/crypto-convert.min.js'></script>
Free public API
https://api.coinconvert.net/convert/btc/usd?amount=1
FAQs
Convert crypto to fiat and vice-versa instantly.
The npm package crypto-convert receives a total of 317 weekly downloads. As such, crypto-convert popularity was classified as not popular.
We found that crypto-convert demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.