How to use the ansi-colors.white function in ansi-colors

To help you get started, we’ve selected a few ansi-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 cleverage / daltons / index.js View on Github external
minViewport = contextMinViewport
  if (argv.minviewport !== undefined) {
    minViewport = Math.max(contextMinViewport, argv.minviewport)
  }
  maxViewport = contextMaxViewport
  if (argv.maxviewport !== undefined) {
    maxViewport = Math.min(contextMaxViewport, argv.maxviewport)
  }

  if (argv.verbose) {
    console.log(
      color.green(
        `Viewports will be considered from ${color.white(
          minViewport + 'px',
        )} to ${color.white(maxViewport + 'px')}`,
      ),
    )
  }

  /* ======================================================================== */
  if (argv.verbose) {
    console.log(
      color.bgCyan.black(
        '\nStep 2: get variations of image width across viewport widths',
      ),
    )
  }

  const VIEWPORT = {
    width: minViewport,
    height: 2000,
github FriendsOfREDAXO / redaxo-mit-bimmelbam / gulpfile.js / tasks / scripts.js View on Github external
// throw error to console
            log(colors.bold(colors.red(err.name + ': ' + err.message)));

            // throw notification
            notifier.notify({
                title: 'ROARRRRRRRRRR!',
                message: 'JavaScript gone wrong.',
                sound: 'Basso',
                contentImage: __dirname + '/../assets/trex.png'
            });
        })
        .pipe(source('script.js'))
        .pipe(buffer())
        .pipe(sourcemaps.init({loadMaps: true}))
        .pipe(process.env.APP_ENV === 'production' ? uglify() : through())
        .pipe(through((log(colors.white('JS files generated:')))))
        .pipe(size({title: 'Scripts:', showFiles: true}))
        .pipe(sourcemaps.write('./'))
        .pipe(gulp.dest(config.scripts.destinationFolder))
        .pipe(browserSync.stream());
}
github FriendsOfREDAXO / redaxo-mit-bimmelbam / gulpfile.js / tasks / init.js View on Github external
const task = (done) => {

    if (process.env.APP_ENV === 'production') {

        console.log(colors.white('\n  Production'));

        // bring out some ASCII art
        asciify('REDAXO', {
            font: 'big',
            color: 'red'
        }, (err, res) => {
            console.log(res);
            done();
        });
    }
    else {

        console.log(colors.white('\n  Development'));

        // bring out some ASCII art
        asciify('BIMMELBAM', {
github living-room / turing / server.js View on Github external
server.listen(staticport, () => {
    const uri = `http://localhost:${staticport}`
    const formatting = {
      borderColor: `cyan`,
      padding: 1,
      dimBorder: true
    }
    const message = color.red(`displays and tools at\n${color.white(uri)}`)
    console.log(boxen(message, formatting))
    opn(uri).catch()
  })
})
github poggit / poggit / server / setup.ts View on Github external
	log: message => console.log(ansi.white(`[LOG] ${message}`)),
	error: message => console.log(ansi.redBright(`[ERROR] ${message}`)),
github liferay / liferay-js-themes-toolkit / packages / liferay-theme-tasks / lib / upgrade / 7.0 / upgrade.js View on Github external
return;
			}

			const match = item.negativeMatch
				? !item.regex.test(fileContents)
				: item.regex.test(fileContents);

			if (match) {
				results.push(item);

				logs.push('    ' + colors.yellow(item.message) + '\n');
			}
		});

		if (logs.length) {
			const fileName = colors.white(
				'File: ' + colors.underline(path.basename(filePath)) + '\n'
			);

			logBuffers[logBuffer].push(fileName);

			logBuffers[logBuffer] = logBuffers[logBuffer].concat(logs);
		}
	}

	return results;
}
github uswds / uswds / config / gulp / doc-util.js View on Github external
function drawFlag() {
  log(colors.white(""));
  log(colors.white("* * * * * ========================"));
  log(colors.white("* * * * * ========================"));
  log(colors.white("* * * * * ========================"));
  log(colors.white("* * * * * ========================"));
  log(colors.white("=================================="));
  log(colors.white("=================================="));
  log(colors.white("=================================="));
  log(colors.white(""));
}
github FriendsOfREDAXO / redaxo-mit-bimmelbam / gulpfile.js / tasks / clean.js View on Github external
del(config[v].cleanFiles).then(function (touchedFiles) {
            if (touchedFiles.length > 0) {
                log(colors.white('Cleaned ' + v + ': ' + colors.magenta(touchedFiles.length)));
            }
            done();
        });
    });

ansi-colors

Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).

MIT
Latest version published 2 years ago

Package Health Score

74 / 100
Full package analysis