info-buffer
v1.0.0
Published
A queue-based logger
Downloads
5
Readme
Info Buffer
This package is a queue-driven console log bus that aims to resolve conflicts when logging items to the console in an event-driven way.
Installation
$ npm install --save info-buffer
Example
const InfoBuffer = require('./index');
const buffer = new InfoBuffer();
buffer.log("log");
buffer.wait();
buffer.log("Not logged");
buffer.resume();
buffer.log("this");
buffer.broadcast();