Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

code-color

lxlhum5MIT0.0.2

a simple tool for wrapping strings in bash and dos color codes. Used to color console output.

cli, bash, color, design, print, pretty print, color codes

readme

code-color

A node.js module for wrapping strings in color codes for pretty printing in shell\dos. Please,install via NPM:

$ npm install code-color

Then import it into your project:

var color = require('code-color');
console.log('test code-color ' + color.red('red') );