1.2.0 • Published 6 years ago

flush-buffer v1.2.0

Weekly downloads
31
License
MIT
Repository
github
Last release
6 years ago

flush-buffer

Buffer that will flush based on time or number of items added

Installation

This module is installed via npm:

$ npm install flush-buffer

Examples

const buffer = new FlushBuffer({flushInterval: 10, maxItems: 1});
buffer.add('bla');
buffer.on('flush', (data) => {
	console.log(data[0]); // bla
});
1.2.0

6 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago