1.0.8 • Published 3 years ago
pupcryptoprice v1.0.8
pupCryptoPrice
pupCryptoPrice is a package that obtains cryptocurrency prices through web scrapping. This package use cherio and node-fetch for webscrapping.
Getting Started
Installation
npm i pupcryptoprice
usage
example 1
const pupCryptoPrice = require("pupcryptoprice")
async function getCoinPrice(){
var bitcoin = await pupCryptoPrice.getBitcoinInfo()
console.log(bitcoin)
}
getCoinPrice()
example 2
const { getEthereumPrice } = require("pupcryptoprice")
async function getCoinPrice() {
var ethereum = await getEthereumInfo()
console.log(ethereum)
}
getCoinPrice()
example 3
const pupCryptoPrice = require("pupcryptoprice")
var coins = {}
async function getCoinPrice() {
coins.bitcoin = await pupCryptoPrice.getBitcoinInfo()
coins.dogecoin = await pupCryptoPrice.getDogecoinInfo()
coins.binancecoin = await pupCryptoPrice.getBinanceCoinInfo()
console.log(coins)
}
getCoinPrice()
Crypto List
To see all the cryptocurrencies that this package gets the price for, there are a few ways:
require package and then type "pupCryptoPrice.get".
acess "./node_modules/pupcryptoprice/pupCryptoPrice.js"
Function Structure
And the last method "pupCryptoPrice.getcurrencyNamePrice".