task-write

A node-task to write input Records to a destination using any RecordIO interface.

task-write

A node-task to write input Records to a destination using any RecordIO interface.

Super rough cut.

var Write = require('task-write');
var Record = require('record');
var task = new Write();
 
var config = {
  use: require('recordio-file')
};
var input = [{
  src: new Record('path/to/fake/foo.txt', 'utf8', 'test'),
  dest: 'tmp/test.txt'
}];
 
task.run(config, input);