How to use the figures.questionMarkPrefix function in figures

To help you get started, we’ve selected a few figures 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 ianstormtaylor / slate / support / benchmark / compare.js View on Github external
console.log(chalk.green(`      ${figures.star} ${base.name}:`))
        console.log(
          `            user: ${user.baseOutput} (${user.percentOutput})`
        )
        console.log(`            real: ${hr.baseOutput} (${hr.percentOutput})`)
        return
      }
      console.log(chalk.red(`      ${figures.cross} ${base.name}:`))
      console.log(
        `            user: ${user.baseOutput} (${user.percentOutput})`
      )
      console.log(`            real: ${hr.baseOutput} (${hr.percentOutput})`)
      return
    }

    console.log(chalk.red(`      ${figures.questionMarkPrefix} ${base.name}:`))
    console.log(`            user: ${user.baseOutput} (${user.percentOutput})`)
    console.log(`            real: ${hr.baseOutput} (${hr.percentOutput})`)
  })
})
github sumcumo / lighthouse-keeper / dist / bundle.js View on Github external
auditRefs.forEach((auditRef) => {
        const audit = results.audits[auditRef.id];
        const passedStatus = auditPassedStatus(audit);
        let hasFailure = false;

        let result;
        if (passedStatus === 2) {
          result = chalk$1.blue(figures.questionMarkPrefix);
        } else if (passedStatus === 1) {
          result = chalk$1.green(figures.tick);
        } else {
          result = chalk$1.red(figures.cross);
          hasFailures = true;
          hasFailure = true;
        }

        if (hasFailure || options.extendedInfo) {
          log(chalk$1.bold.red(`${result} ${audit.id}`));
          prettyJson(audit);
          linebreak();
          linebreak();
        } else {
          tableData.push({
            audit: audit.id,
github sumcumo / lighthouse-keeper / lib / main.js View on Github external
auditRefs.forEach((auditRef) => {
        const audit = results.audits[auditRef.id]
        const passedStatus = auditPassedStatus(audit)
        let hasFailure = false

        let result
        if (passedStatus === 2) {
          result = chalk.blue(figures.questionMarkPrefix)
        } else if (passedStatus === 1) {
          result = chalk.green(figures.tick)
        } else {
          result = chalk.red(figures.cross)
          hasFailures = true
          hasFailure = true
        }

        if (hasFailure || options.extendedInfo) {
          log(chalk.bold.red(`${result} ${audit.id}`))
          prettyJson(audit)
          linebreak()
          linebreak()
        } else {
          tableData.push({
            audit: audit.id,