console

returns `console` if present

npm install console
10 downloads in the last week
38 downloads in the last month

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");
npm loves you