1.0.8 • Published 2 years ago
live-fuel-currency-gold-prices v1.0.8
live-fuel-currency-gold-prices
live-fuel-currency-gold-prices is package to get live prices of fuel, currency and gold.
Installation
npm i live-fuel-currency-gold-prices
Usage
const fun=require('live-fuel-currency-gold-prices')
Promise.all([ fun.getLiveRates('cur'), fun.getLiveRates('gold'),fun.getLiveRates('fuel'),fun.getLiveRates('all') ] ).then( data=> {
const cur = data[0];
const gold = data[1];
const fuel = data[2];
const all = data[3];
console.log(all)
});