broccoli-wrap

0.0.2 • Public • Published

broccoli-wrap

Installation

npm install --save-dev broccoli-wrap

Usage

var wrapFiles = require('broccoli-wrap');
tree = wrapFiles(tree, options);

Options

The following options are supported:

  • wrapper array of two strings to be placed as start and the end of stream (file)

  • extensions array of file extensions to process; default: ['js']

###Example

var wrapFiles = require('broccoli-wrap');

// this will wrap files in 'js' folder into anonymous function
var tree = wrapFiles('js', { wrapper: ["(function(){;\n", "})();"] });

module.exports = tree;

Package Sidebar

Install

npm i broccoli-wrap

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • h1d