"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/colors/ReadMe.md" (8 Mar 2017, 1299 Bytes) of archive /windows/misc/atom-windows.zip:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

colors.js - get color and style in your node.js console ( and browser ) like what


npm install colors

colors and styles!


var colors = require('./colors');

console.log('hello'.green); // outputs green text
console.log('i like cake and pies'.underline.red) // outputs red underlined text
console.log('inverse the color'.inverse); // inverses the color
console.log('OMG Rainbows!'.rainbow); // rainbow (ignores spaces)

Creating Custom themes

var colors = require('colors');

  silly: 'rainbow',
  input: 'grey',
  verbose: 'cyan',
  prompt: 'grey',
  info: 'green',
  data: 'grey',
  help: 'cyan',
  warn: 'yellow',
  debug: 'blue',
  error: 'red'

// outputs red text
console.log("this is an error".error);

// outputs yellow text
console.log("this is a warning".warn);


Marak (Marak Squires) Alexis Sellier (cloudhead) mmalecki (Maciej MaƂecki) nicoreed (Nico Reed) morganrallen (Morgan Allen) JustinCampbell (Justin Campbell) ded (Dustin Diaz)

, Marak Squires , Justin Campbell, Dustin Diaz (@ded)