npm.io
1.0.0 • Published 11 years ago

colorful-console

Licence
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
Stars
1

colorfulConsole

make console outputs colorful in both terminal and browser.

Similar to (colour.js)[https://github.com/dcodeIO/colour.js]

Usage in Node JS:

	var colorfulConsole = require('colorfulConsole');
	colorfulConsole.bold().red().log("Printed in Bold and Red");
	colorfulConsole.green("[green tag]").pink("[pink tag]").log("Plain Text");
	colorfulConsole.cyanBg("Background").blueBg("Supported").log();

Usage in Browser:

<!DOCTYPE html>
<html>
<body>
Open Chrome Console To See the output
<script src="colorfulConsole.js"></script>
<script>
    colorfulConsole.red("Red")
            .bold().green("Bold and Green")
            .yellow().bold().blackBg("Yellow, Bold, Black Background")
            .info("Normal console.info()");
</script>
</body>
</html>