Huge news!Announcing our $20M Series A led by Andreessen Horowitz.Learn more
Socket
Socket
Log inDemoInstall

console-browserify

Package Overview
Dependencies
0
Maintainers
41
Versions
12
Issues
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

console-browserify

Emulate console for all the browsers

    1.2.0latest
    GitHub
    npm

Version published
Maintainers
41
Weekly downloads
8,675,387
decreased by-4.1%

Weekly downloads

Changelog

Source

1.2.0

  • Move to the browserify org.
  • Remove date-now dependency. (@jakepusateri in #10)
  • Fix memory leak in time/timeEnd. (@maxnordlund in #11)

Readme

Source

console-browserify Build Status

Emulate console for all the browsers

Install

You usually do not have to install console-browserify yourself! If your code runs in Node.js, console is built in. If your code runs in the browser, bundlers like browserify or webpack also include the console-browserify module when you do require('console').

But if none of those apply, with npm do:

npm install console-browserify

Usage

var console = require("console")
// Or when manually using console-browserify directly:
// var console = require("console-browserify")

console.log("hello world!")

API

See the Node.js Console docs. console-browserify does not support creating new Console instances and does not support the Inspector-only methods.

Contributing

PRs are very welcome! The main way to contribute to console-browserify is by porting features, bugfixes and tests from Node.js. Ideally, code contributions to this module are copy-pasted from Node.js and transpiled to ES5, rather than reimplemented from scratch. Matching the Node.js code as closely as possible makes maintenance simpler when new changes land in Node.js. This module intends to provide exactly the same API as Node.js, so features that are not available in the core console module will not be accepted. Feature requests should instead be directed at nodejs/node and will be added to this module once they are implemented in Node.js.

If there is a difference in behaviour between Node.js's console module and this module, please open an issue!

Contributors

  • Raynos

License

MIT

FAQs

Last updated on 28 Oct 2019

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install
SocketSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc