Skip to content

Commit

Permalink
change name file & display version
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebouttier committed Jul 13, 2021
1 parent d78c6b1 commit 74ff94d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "coinmarketcap-icons-cryptos",
"version": "1.0.2",
"description": "Get all images icons cryptos coinmarketcap",
"main": "app.js",
"main": "start.js",
"repository": "https://github.com/alexandrebouttier/coinmarketcap-icons-cryptos.git",
"author": "Alexandre",
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion app.js → start.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const _ = require('lodash');
const download = require('image-downloader');

const config = require('./config.json');
const package = require('./package.json');

const folderPatch = process.cwd();
const cryptos = [];
Expand All @@ -32,7 +33,8 @@ try {
cmlog.error(new Error(err));
}

cmlog.start('Start generator');
cmlog.start(`coinmarketcap-icons-cryptos V${package.version} => Start generator`);

if (!_.isEmpty(config.apikey)) {
axios
.get('https://pro-api.coinmarketcap.com/v1/cryptocurrency/map', {
Expand Down

0 comments on commit 74ff94d

Please sign in to comment.