New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

choo-log

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

choo-log

Development logger for choo

  • 6.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
decreased by-17.24%
Maintainers
4
Weekly downloads
 
Created
Source

choo-log stability choo peer dependency

npm version build status test coverage downloads js-standard-style

Development logger for choo.

screen capture

Usage

var log = require('choo-log')
var choo = require('choo')

var app = choo()
app.use(log())

var tree = app.start()
document.body.appendChild(tree)

And to optimize for production using envify:

var choo = require('choo')

var app = choo()

// this block of code will be eliminated by any minification if
// NODE_ENV is set to "production"
if (process.env.NODE_ENV !== 'production') {
  var log = require('choo-log')
  app.use(log())
}

API

logger = log(opts)

Create a new logger instance. Opts can contain:

  • timing: defaults to true. Disable calls to window.performance timing API. Timing calls will not run in browsers that don't support it out of the box.
  • clearResourceTimings: defaults to true. Disable clearing the window.performance resourcetimingbuffer when full. Set to false if the buffer is cleared somewhere else.

Installation

$ npm install choo-log

License

MIT

Keywords

FAQs

Package last updated on 01 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc