task-wrap

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

npm install task-wrap
2 downloads in the last week
4 downloads in the last month

task-wrap

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

Super rough cut.

Usage

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);
npm loves you