npm.io
1.0.0 • Published 6 years ago

info-buffer

Licence
MIT
Version
1.0.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0

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();

Keywords