help message if specifying a message * @return {String} full help message */ const show_help = (text) => { if (text) console.log(text) yargs.showHelp() }
this file.) ↓ https://github.com/k-kuwahara/check-stats-modules/blob/master/src/ lib/args.js Briefly, we describe the setting of the contents of the “help“ and the processing to handle the arguments and options of the command.
= require(‘yargs’) const pkg = require(‘../package.json’) + const npm = require('npm-stat-api') + const moment = require('moment') + const chalk = require('chalk') makes it easy to handle dates and times