usd2crypto
v1.0.0
Published
Simple NPM Package that converts an amount of USD to Crypto.
Downloads
3
Readme
Requirements
This module uses the "CoinGecko" api to work. You will need an Api Key from CoinGecko.
Basic Use (example)
const { u2c } = require('usd2crypto')
const usd2crypto = await u2c(10, "bitcoin", myApiKey) // the first param could also be a string like: "10"
console.log(usd2crypto.amount) // returns the amount of crypto that is equal to the first param