node package manager

console

Console

Drop-in replacement for console - a cross-environment fix for missing methods.

Installation

Just include the script. The host console object is automagically updated in your environment. No need for new or any other sort of initialization.

Browser

<script src="console.js"></script>

Node.js

Or, if you're using console with Node.js

$ npm [-g] install console

Then require the "console" module:

var console = require("console");