Ver Fonte

pull version from package.json

karl.hudgell há 4 anos atrás
pai
commit
64cb9b95d1
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      lib/common.js

+ 4 - 2
lib/common.js

@@ -2,7 +2,7 @@ const chalk = require('chalk');
 const clear = require('clear');
 const figlet = require('figlet');
 const fs = require('fs')
-
+var pjson = require('../package.json');
 
 module.exports = {
     header: (page) => {
@@ -14,7 +14,9 @@ module.exports = {
                 })
             )
         );
-        console.log(chalk.red('                                                                                     2.0.0'));
+        console.log(chalk.red('                                                                                     ' + pjson.version));
+        console.log();
+
         console.log(
             chalk.red(
                 '-------------------------------------------------------------------------------------------------------'