How to use the colors.yellow function in colors

To help you get started, we’ve selected a few colors 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 sarfraznawaz2005 / quran-cli / app.js View on Github external
// we always show english text (for non-muslims or those who don't know arabic)
            // so that they can know the Truth and religion chosen by Allah for humans.            
            table.push([
                meaning[chapter].aya[aya.$.index].$.index,
                meaning[chapter].aya[aya.$.index].$.text
            ]);

        });
    }
    else {

        if (!arabic || arabic != 0) {
            table.push([
                colors.yellow(verses.$.index),
                colors.yellow(verses.$.text)
            ]);
        }

        --verses.$.index;

        table.push([
            meaning[chapter].aya[verses.$.index].$.index,
            meaning[chapter].aya[verses.$.index].$.text
        ]);
    }

    return table;
}
github alibaba / funcraft / lib / commands / local / http-support.js View on Github external
function printHttpTriggerTips(serverPort, serviceName, functionName, triggerName, endpoint, httpMethods, authType, domainName) {
  const prefix = domainName ? `CustomDomain ${domainName}` : `HttpTrigger ${triggerName}`;
  console.log(green(`${prefix} of ${serviceName}/${functionName} was registered`));
  console.log('\turl: ' + yellow(`http://localhost:${serverPort}${endpoint}`));
  console.log(`\tmethods: ` + yellow(httpMethods));
  console.log(`\tauthType: ` + yellow(authType));
}
github adonisjs / adonis-cli / src / Commands / new.js View on Github external
* in commandline
   */
  if (argv.dev) {
    branch = 'develop'
  }

  /**
   * return if project path is not defined
   */
  if (!argv._[1]) {
    console.log(colors.red(`define project path \n${colors.bold.white('example:- adonis new yardstick')}`))
    return
  }

  if (!check(argv)) {
    console.log(colors.yellow(`\nInstall stopped. Please check error above.`))
    return
  }

  const projectPath = argv._[1]
  const fullPath = path.isAbsolute(projectPath) ? projectPath : path.join(process.cwd(), projectPath)
  const spinner = new Spinner(`${colors.green('installing dependencies... %s')}`)
  clone(repo, branch, projectPath)
  .then(function () {
    console.log(`${colors.green('cleaning project')}`)
    return clean(fullPath)
  })
  .then(function () {
    console.log(`${colors.green('setting up app key')}`)
    return setKey(fullPath)
  })
  .then(function () {
github microsoft / rushstack / apps / rush-lib / src / cli / actions / ChangeAction.ts View on Github external
private _warnUncommittedChanges(): void {
    try {
      if (VersionControl.hasUncommittedChanges()) {
        console.log(
          os.EOL +
            colors.yellow(
              'Warning: You have uncommitted changes, which do not trigger prompting for change ' +
                'descriptions.'
            )
        );
      }
    } catch (error) {
      console.log(`An error occurred when detecting uncommitted changes: ${error}`);
    }
  }
github guerrerocarlos / bitcoin-receive-payments / index.js View on Github external
var id_has_address_assigned = function(id) {
  debugaddress(colors.yellow('', id))
  return new Promise(function(Success, Reject) {
    client.get('id-' + id, function(err, reply) {
      debugaddress(colors.cyan('', id, ':reply', reply))
      if (reply === null) {
        debugaddress(colors.red('Rejecting!'))
        Reject();
      } else {
        debugaddress(colors.green('success!', reply))
        Success(reply)
      }
    });
  })
}
github guo-yu / raspberry / lib / alert.js View on Github external
var color = require('colors');

exports.error = color.red('[Error] Opps.. here are error details: ');
exports.success = color.green('[Success] ');
exports.notFound = color.yellow('[404] ');
exports.doing = color.yellow('[Loading] ');
exports.wifi = {
    scan: color.yellow('[scan wifi] '),
    setup: color.yellow('[setup wifi] '),
    start: color.green('[start wifi] '),
    stop: color.red('[stop wifi] '),
    list: color.yellow('[list wifi] ')
}
github guo-yu / raspberry / lib / alert.js View on Github external
var color = require('colors');

exports.error = color.red('[Error] Opps.. here are error details: ');
exports.success = color.green('[Success] ');
exports.notFound = color.yellow('[404] ');
exports.doing = color.yellow('[Loading] ');
exports.wifi = {
    scan: color.yellow('[scan wifi] '),
    setup: color.yellow('[setup wifi] '),
    start: color.green('[start wifi] '),
    stop: color.red('[stop wifi] '),
    list: color.yellow('[list wifi] ')
}