From 74ff94dd81bd6ca71096932c3eb783647999c587 Mon Sep 17 00:00:00 2001 From: alexandre Date: Tue, 13 Jul 2021 14:29:07 +0200 Subject: [PATCH] change name file & display version --- package.json | 2 +- app.js => start.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) rename app.js => start.js (96%) diff --git a/package.json b/package.json index 86a9a22d..5e300bbf 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/app.js b/start.js similarity index 96% rename from app.js rename to start.js index fd5467f3..12953796 100644 --- a/app.js +++ b/start.js @@ -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 = []; @@ -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', {