How to use the cli-color.blueBright function in cli-color

To help you get started, we’ve selected a few cli-color examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Heydon / readabilityCheckerCLI / lib / readability.js View on Github external
console.log(' ');
    console.log(clc.yellowBright('✎✎✎✎✎✎✎✎✎✎ Readability ✎✎✎✎✎✎✎✎✎✎'));

    if (isNaN(score)) {

      console.log(' ');

      console.log(clc.redBright('Error: The content could not be tested. Check the file or URL you supplied.'));

      console.log(' ');

    } else {

      console.log(' ');

      console.log(clc.blueBright('Flesch Reading Ease:'), clc.whiteBright(Math.round(score)+'/100'));

      console.log(' ');

      console.log(clc.blueBright('Notes:'), clc.whiteBright(notes));

      console.log(' ');

      if (longWords.length) {

        console.log(clc.blueBright('Long words:'), clc.whiteBright(longWords.join(', ')));

      }

      console.log(' ');

      // if there are any long sentences
github sarthology / criCLI / MatchData.js View on Github external
console.log("-------------------------------------------");

                console.log("\n\t☹️  Match not Started Yet !! ☹️\n");
                console.log("-------------------------------------------");

            }

            // -------------------  MATCH NOT STARTED BLOCK  ENDED  ----------------------



            //--------------------  START MATCH CONCLUDED BLOCK ------------------------- 
            else if (this.state == 'mom') {
                // Check For Toss
                if (option.includes("t")) {
                    console.log(clc.blueBright(JSONData.toss.winner + " won the toss and opted for " + JSONData.toss.decision));
                }


                // Print Match Summary
                if (JSONData.team1.s_name && JSONData.team2.s_name) {
                    console.log("\n---------      Match Summary      ---------");

                    if (JSONData.team1.id == this.score.batting.id) {
                        console.log(clc.cyanBright(JSONData.team1.s_name + " : ") + clc.yellowBright(this.score.batting.score + "/" + this.score.max_overs));
                    }
                    if (JSONData.team2.id == this.score.batting.id) {
                        console.log(clc.cyanBright(JSONData.team2.s_name + " : ") + clc.yellowBright(this.score.batting.score));
                    }
                    if (this.score.bowling) {
                        if (JSONData.team1.id == this.score.bowling.id) {
                            console.log(clc.cyanBright(JSONData.team1.s_name + " : ") + clc.yellowBright(this.score.bowling.score));
github loggin-js / loggin-js / .tests / benchmarks / log-to-console.js View on Github external
for (let i = 0; i < TEST_DEPTH; i++) {
  logger.debug('Most likely what a log should be in length, more or less...');
}

let end = new Date() - start,
  hrend = process.hrtime(hrstart);

let endSec = end / 1000;


console.info('________________________________________________________________________________________________');
console.info('Loggin\'JS results: ');
console.info('   logs: ' + clic.blueBright(TEST_DEPTH));
console.info('   time: ' + clic.blueBright(endSec + 's '));
console.info(' hrtime: ' + clic.blueBright(hrend[0] + 's ' + hrend[1] / 1000000 + 'ms'));
console.info('');

console.info('Console.log results: ');
console.info('   logs: ' + clic.cyan(TEST_DEPTH));
console.info('   time: ' + clic.cyan(endSec1 + 's '));
console.info(' hrtime: ' + clic.cyan(hrend1[0] + 's ' + hrend1[1] / 1000000 + 'ms'));
console.info('');
github sequelize / cli / lib / tasks / migration.js View on Github external
config = helpers.config.readConfig();
      } catch (e) {
        console.log(e.message);
        process.exit(1);
      }

      fs.writeFileSync(
        helpers.path.getMigrationPath(args.name),
        helpers.template.render('migrations/skeleton.js', {}, {
          beautify: false
        })
      );

      helpers.view.log(
        'New migration was created at',
        clc.blueBright(helpers.path.getMigrationPath(args.name)),
        '.'
      );
    }
  }
github sequelize / cli / src / commands / model_generate.js View on Github external
try {
    helpers.model.generateFile(args);
  } catch (err) {
    helpers.view.error(err.message);
  }

  helpers.migration.generateTableCreationFile(args);
  helpers.view.log(
    'New model was created at',
    clc.blueBright(helpers.path.getModelPath(args.name)),
    '.'
  );
  helpers.view.log(
    'New migration was created at',
    clc.blueBright(helpers.path.getMigrationPath(args.name)),
    '.'
  );

  process.exit(0);
};
github gameclosure / devkit / priv / releaser.js View on Github external
function logCommand(cmd) {
	console.log(clc.blueBright("> " + cmd.cmd.map(function (piece) { return JSON.stringify(piece); }).join(" ")));

	var stdout = cmd.stdout.replace(/(^\s+|\s+$)/g, '').replace(/\n/g, clc.greenBright("\n || "));
	var stderr = cmd.stderr.replace(/(^\s+|\s+$)/g, '').replace(/\n/g, clc.redBright("\n || "));

	stdout && console.log(clc.greenBright(" || ") + stdout);
	stderr && console.log(clc.redBright(" || ") + stderr);
	
	console.log(!cmd.code ? "(exit code 0)" : clc.redBright("(exit code " + cmd.code + ")"));
}
github gfosco / mysql2parse / mysql2parse.js View on Github external
function enterRelationsLoop() {

    console.log('\n' + clc.blueBright('=== Configure Relations ===') + '\n');
    
    if (tableRelations.length) {
        u.each(tableRelations, function(relation) { 
           console.log('Relation exists from ' + clc.greenBright(relation.source) + '.' + clc.greenBright(relation.sourceField) + ' to ' + clc.greenBright(relation.target) + '.' + clc.greenBright(relation.targetField)); 
        });        
        console.log('\n');
        u.each(tables, function(table) {
           if (tableDependencies[table]) {
               u.each(tableDependencies[table], function(dep) {
                   console.log('Table ' + clc.greenBright(table) + ' is dependent on ' + clc.greenBright(dep));
               })               
           } 
        });
        console.log('\n');
    } else {
        console.log(clc.yellowBright('No relations configured.') + '\n');
github sequelize / cli / lib / helpers / gulp-helper.js View on Github external
getGlobalOptions: function () {
    return {
      '--env': 'The environment to run the command in. ' +
        clc.blueBright('Default: development'),
      '--coffee': 'Enables coffee script support. ' +
        clc.blueBright('Default: false'),
      '--config': 'The path to the config file. ' +
        clc.blueBright('Default: config/config.json'),
      '--options-path': 'The path to a JSON file with additional options. ' +
        clc.blueBright('Default: none'),
      '--migrations-path': 'The path to the migrations folder. ' +
        clc.blueBright('Default: migrations'),
      '--seeders-path': 'The path to the seeders folder. ' +
        clc.blueBright('Default: seeders'),
      '--models-path': 'The path to the models folder.' +
        clc.blueBright('Default: models'),
      '--url': 'The database connection string to use. Alternative to using --config files. ' +
        clc.blueBright('Default: none')
    };
  },
github sequelize / cli / lib / tasks / init.js View on Github external
_.forEach(items, function (value, key) {
          result.push([
            clc.blueBright(helpers.view.pad(key, items)),
            value
          ].join(' '));
        });