https://github.com/devinroche/crypix
cryptocurrency npm lib to get images
https://github.com/devinroche/crypix
Last synced: about 1 year ago
JSON representation
cryptocurrency npm lib to get images
- Host: GitHub
- URL: https://github.com/devinroche/crypix
- Owner: devinroche
- Created: 2018-05-01T23:51:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-02T05:47:59.000Z (about 8 years ago)
- Last Synced: 2024-04-27T03:42:43.178Z (about 2 years ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# crypix
> comprehensive list of cryptocurrencies with image urls.
Gathered image urls through coinmarketcap for top 300 cryptos. Can be used as a JSON file or npm library.
## install
```
npm i crypix --save
```
## usage
```
const crypix = require('crypix')
let coins = crypix.allTokens()
// all coins in package
{
UTK: 'https://s2.coinmarketcap.com/static/img/coins/16x16/2320.png',
AMB: 'https://s2.coinmarketcap.com/static/img/coins/16x16/2081.png',
XBY: 'https://s2.coinmarketcap.com/static/img/coins/16x16/1636.png',
...
}
let coin = crypix.getToken('ETH")
// image url for ethereum
"https://s2.coinmarketcap.com/static/img/coins/16x16/1027.png"
```