0.0.4 • Published 9 years ago

floor-stream v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

floor-stream

Returns a transform stream that takes newline-seperated floats and floors em.

For when, you know, you just want some inaccuracy.

install

npm install floor-stream

example usage

var FloorStream = require('floor-stream');
var floor = new FloorStream({separator: '\n'});

// file with a bunch of random floats
var file = fs.createReadStream('./file.txt');
var split = require('split');

// pipe the file to the split-stream so that it
// creates a chunk for each float to be processed.
// then pipe that somewhere super cool.
file.pipe(split()).pipe(floor).pipe(process.stdout);

var floor = new FloorStream(opts)

opts.separator - string choose what you want the output chunks to be separated by.

license

MIT

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago