SilkJS builtin console object.
The builtin/console object provides a minimal implementation of the client-side console object.
var console = require('builtin/console');
The JavaScriptimplementation of a more robust console object:
modules/console.js
console.log(s);
Write a string to stdout.
console.error(s);
Write a string to stderr.
var password = console.getPassword(prompt);
Display a prompt and readin a password without echoing the characters to the display.
var size = console.getSize();
Get size of console window in rows and columns
The size object returned contains the following members:
rows: number of rows the terminal can display
columns: number of columns the terminal can display