console
Returns `console` if present, otherwise returns a `noop`.
Last updated 7 years ago by matthewhudson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install console 
SYNC missed versions from official npm registry.

Console

NPM version NPM downloads

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

Installation

npm install console --save

And then import it:

// using es modules
import console from 'console'

// common.js
const console = require('console').default

// AMD
// I've forgotten but it should work.

Or use script tags and globals.

<script src="https://unpkg.com/console/umd/console.min.js"></script>

And then grab it off the global like so:

const console = console.default

Current Tags

  • 0.7.2                                ...           latest (7 years ago)

11 Versions

  • 0.7.2                                ...           7 years ago
  • 0.7.1                                ...           7 years ago
  • 0.7.0                                ...           7 years ago
  • 0.6.4                                ...           7 years ago
  • 0.6.3                                ...           7 years ago
  • 0.6.2                                ...           7 years ago
  • 0.6.1                                ...           7 years ago
  • 0.6.0                                ...           7 years ago
  • 0.5.2                                ...           11 years ago
  • 0.5.1                                ...           11 years ago
  • 0.4.9                                ...           13 years ago
Downloads
Total 4
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE