Ansilog is a project mainly written in JavaScript, it's free.
console.log extension for ANSI colouring in stdout