@ -63,11 +63,11 @@ coins.filter(coin => coin.maxSupply > 10000000000).map(coin => coin.name);
const coinsJson = require('coinlist/src/coins.json');
```
## Update
## Update Coins
```shell
$ yarn update
Fetching data...
Fetching latest currencies from the coinmarketcap.com API...
Written 1567 coins to src/coins.json
✨ Done in 0.52s.
@ -6,7 +6,7 @@ const writeJsonFile = require('write-json-file');
const jsonFile = 'src/coins.json';
(async () => {
console.log(`Fetching data...`);
console.log(`Fetching latest currencies from the coinmarketcap.com API...`);
const response = await got('https://api.coinmarketcap.com/v1/ticker/?limit=0', { json: true });
const coins = response.body
.map(coin => ({