task-wrap

A node-task to wrap input Records with arbitrary text.

task-wrap

A node-task to wrap input Records with arbitrary text.

Super rough cut.

var Wrap = require('task-wrap');
var Record = require('record');
 
var task = new Wrap();
var options = {
  header: '//header',
  footer: '//footer'
};
var input = [{
  src: new Record('path/to/fake/foo.txt', 'utf8', 'test'),
  dest: 'tmp/test.txt'
}];
 
task.run(options, input);