bufferize

1.0.0 • Public • Published

node-bufferize

Example

var bufferize = require("bufferize");
var es = require("event-stream");
var fs = require("fs");

fs.createReadStream("dictionary.txt", { encoding: 'utf8' })
  .pipe(es.split())
  // A stream event per word in the dictionary
  .pipe(bufferize(512))
  // A stream event per 512 word in the dictionary (array of words)
  .pipe(...)
  ...

/bufferize/

    Package Sidebar

    Install

    npm i bufferize

    Weekly Downloads

    1

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • gre