coinr

Get latest ticker information for popular cryptocurrencies


Keywords
crypto, currency, cryptocurrency, coin
License
MIT
Install
npm install coinr@1.1.1

Documentation

¤ coinr Build Status js-standard-style

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander (@4lpine).


This package was initially generated with yeoman and the p generator.