UNPKG

task-wrap

Version:

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

29 lines (25 loc) 640 B
/* * task-wrap * http://github.com/node-task/task-wrap * * Copyright (c) 2013 Tyler Kellen, contributors * Licensed under the MIT license. */ 'use strict'; var meta = require('../package'); var Task = require('task'); var Wrap = Task.extend({ name: meta.name, description: meta.description, version: meta.version, options: { separator: { description: "Wrapenated input will be joined on this string.", defaultValue: process.platform === 'win32' ? '\r\n' : '\n' } }, map: function(config, source, dest) { return source.prepend(config.header).append(config.footer); } }); module.exports = Wrap;