Skip to content
Tom Brasington edited this page Jan 6, 2014 · 4 revisions

Higgs has a library to to allow you to pretty-print objects/data to stdout.

Importing:

// To us use the console functions you must import the console module:
var console = require('lib/console');

Functions:

// To pretty-print
console.log("foo");
console.log({ foo: "bar"});
// If you pass multiple arguments, they will be printed on the same line separated by tabs
console.log(1, 2, 3);
Clone this wiki locally