loremipstream

0.0.3 • Public • Published

node-loremipstream

A configurable Readable Stream that generates Lorem ipsum. Useful for stream testing.

Build Status

Usage

var LoremIpStream = require('loremipstream');
 
var lorem = new LoremIpStream(options);
 
lorem.on('end', function() {
  console.log(this.sent + ' characters sent');
});
 
lorem.pipe(process.stdout);

where the following options are supported:

  • size - the total size (in characters) of the stream
  • dataSize - the size (in characters) of each emitted 'data' event
  • dataInterval - how often (in ms) to emit each 'data' event

Install

  npm install loremipstream

Dependencies

This library has no production dependencies, only the following test dependencies:

Readme

Keywords

none

Package Sidebar

Install

npm i loremipstream

Weekly Downloads

4

Version

0.0.3

License

MIT

Last publish

Collaborators

  • pofallon