splitted

A simple chunked stream

splitted ==============

A simple chunked stream

$ npm install splitted

var splitted = require('splitted'),
    stream = splitted('output.txt', '10m');
// Get notified when a chunk is full
stream.on('finish', function (file) {
    console.log(file);
});
stream.write('hello');
// An output.txt.0 file has been created

You can run tests with $ npm test command.