johann philipp strathausen

berlin based indie maker

Culoare - colours for the node console

Just released a fancy clone of colors.js but with more awesome: github.com/strathausen/culoare

It features background colours, light and dark modes and fancy blinking. I wrote it in order to get more fluent with CoffeeScript.

Example

In culoare, you could now do

require('culoare');
console.log(
  'blinking text'.blink,
  ('blue background '
    + 'light red'.lightred
    + ' blue background'
  ).blue
);

Installation

npm install culoare

Outlook

Here’s the original library: https://github.com/Marak/colors.js

In a next version, I’d like to not monkey-patch the string class by default, but instead, provide a set of functions that colourise strings.