Socket
Socket
Sign inDemoInstall

throttled-log

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    throttled-log

Throttled console.log


Version published
Maintainers
1
Install size
6.05 kB
Created

Readme

Source

throttled-log

Throttled log to STDOUT

If you're writing a lot of data to STDOUT, throttling the output goes a long way to keeping performance up.

Usage

var log = require("throttled-log")();

// This is much faster
for (var i = 1000000 - 1; i >= 0; i--) {
  log("this is a test");
};

// than this
for (var i = 1000000 - 1; i >= 0; i--) {
  console.log("this is a test");
};

// throttled: 268ms vs unthrottled: 6401ms

FAQs

Last updated on 18 Jun 2013

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc