0.0.3 • Published 9 years ago

soil v0.0.3

Weekly downloads
13
License
-
Repository
github
Last release
9 years ago

Soil

A transform stream that maintains and acts on a sliding window buffer

Example

var Soil = require('soil');

var options = {
  // the interval at which to slide the buffer
  paddingSize: 16,
  // the size of the window
  chunkSize: 16384
};

var soil = new Soil(options);

soil.transform = function (data, encoding, callback) {
  console.log('data', data.toString('utf8'));
  // act on a window slide
  return callback(null);
}

soil.write('hello world hello world hello world');
0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

12 years ago