JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 59873
  • Score
    100M100P100Q155015F

returns `console` if present

Package Exports

  • console

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (console) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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