index.js
function ToJSFilter (inputTree, options) {
    if (!(this instanceof ToJSFilter)) {
        return new ToJSFilter(inputTree, options);
    }
    options = options || {};
    options.extensions = options.extensions || ['txt'];
    options.targetExtension = 'js';
    Filter.call(this, inputTree, options);
    this.trimFiles = options.trimFiles || false;
}
function ToJSFilter (inputTree, options) {
    if (!(this instanceof ToJSFilter)) {
        return new ToJSFilter(inputTree, options);
    }
    options = options || {};
    options.extensions = options.extensions || ['txt'];
    options.targetExtension = 'js';
    Filter.call(this, inputTree, options);
    this.trimFiles = options.trimFiles || false;
}
function ToJSFilter ( inputTree , options ) { if ( ! ( this instanceof ToJSFilter ) ) { return new ToJSFilter ( inputTree , options ) ; } options = options || { } ; options . extensions = options . extensions || [ 'txt' ] ; options . targetExtension = 'js' ; Filter . call ( this , inputTree , options ) ; this . trimFiles = options . trimFiles || false ; }
Take an input tree with text files in it and return them embedded into new JS module files

@class
@param {string,broccoliTree} inputTree The tree of files to search for appropriate text files
@param {object} options The options object
Take an input tree with text files in it and return them embedded into new JS module files