throttled-log
Throttled console.log
Last updated 7 years ago by camshaft .
MIT · Original npm · Tarball · package.json
$ cnpm install throttled-log 
SYNC missed versions from official npm registry.

throttled-log

Throttled log to STDOUT

If you're writing a lot to STDOUT, throttling writes goes a long way to keeping performance up.

Usage

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

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

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

// unthrottled: 6401 throttled: 268

Current Tags

  • 0.1.1                                ...           latest (7 years ago)

2 Versions

  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 1
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |