1.2.0 • Published 7 years ago

coinr v1.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

¤ 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.

1.2.0

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago