Skip to content

Instantly share code, notes, and snippets.

@dc
dc / example.coffee
Created July 9, 2011 10:16
ANSI styling — node.js
terminal = require('terminal')
console.log terminal.ANSIFormat("{{magenta}}Hello {{blue}}World!{{reset}}")
console.log terminal.ANSIStyle('red;inverse') + "ERROR:" + terminal.ANSIStyle('default;noinverse') + " method not found"