¤ coinr
Get latest ticker information for popular cryptocurrencies from coinmarketcap.com. Quotes update every 5 minutes.
Installation
npm install --save coinr
Usage
const coinr = require('coinr')
// Pass the full name
coinr('ethereum').then(d => console.log(d))
coinr('Ethereum').then(d => console.log(d))
// Or the ticker symbol
coinr('eth').then(d => console.log(d))
coinr('ETH').then(d => console.log(d))
You can also retrieve the cryptocurrency ticker map
const tickers = require('coinr/tickers-map.json')
tickers.eth // 'ethereum'
tickers.btc // 'bitcoin'
License
MIT
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by John Otander (@4lpine).
This package was initially generated with yeoman and the p generator.