How to use the ansi-cyan function in ansi-cyan

To help you get started, we’ve selected a few ansi-cyan 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 shannonmoeller / ygor / packages / tasks / src / tasks.js View on Github external
return (val) => {
		const endTime = new Date();
		const duration = ms(endTime - startTime);

		logTime(endTime, `Finished '${cyan(name)}' (${magenta(duration)})`);

		return val;
	};
}
github shannonmoeller / ygor / packages / tasks / src / tasks.js View on Github external
function time(name, options) {
	if (options.quiet) {
		return (val) => val;
	}

	const startTime = new Date();

	logTime(startTime, `Starting '${cyan(name)}' ...`);

	return (val) => {
		const endTime = new Date();
		const duration = ms(endTime - startTime);

		logTime(endTime, `Finished '${cyan(name)}' (${magenta(duration)})`);

		return val;
	};
}

ansi-cyan

The color cyan, in ansi.

MIT
Latest version published 9 years ago

Package Health Score

50 / 100
Full package analysis

Popular ansi-cyan functions