index.js
function Tributary( options ) {

    options = options || {};

    stream.Transform.call( this, { encoding: options.encoding } );

    this.getStream = options.getStream || function( filename, cb ) {
        return cb();
    };

    this._matcher = new Matcher( 
        options.placeholderStart || '<!-- include ',
        options.placeholderEnd !== undefined ? options.placeholderEnd : ' -->',
        options.maxPathLength,
        options.delimiter
    );
       
    this._tributaryState = {
        chunk: null,
        cursor: 0,
        contentStart: 0,
        contentEnd: -1,
        remainder: 0
    };
 
}
function Tributary( options ) {

    options = options || {};

    stream.Transform.call( this, { encoding: options.encoding } );

    this.getStream = options.getStream || function( filename, cb ) {
        return cb();
    };

    this._matcher = new Matcher( 
        options.placeholderStart || '<!-- include ',
        options.placeholderEnd !== undefined ? options.placeholderEnd : ' -->',
        options.maxPathLength,
        options.delimiter
    );
       
    this._tributaryState = {
        chunk: null,
        cursor: 0,
        contentStart: 0,
        contentEnd: -1,
        remainder: 0
    };
 
}
function Tributary ( options ) { options = options || { } ; stream . Transform . call ( this , { encoding : options . encoding } ) ; this . getStream = options . getStream || function ( filename , cb ) { return cb ( ) ; } ; this . _matcher = new Matcher ( options . placeholderStart || '<!-- include ' , options . placeholderEnd !== undefined ? options . placeholderEnd : ' -->' , options . maxPathLength , options . delimiter ) ; this . _tributaryState = { chunk : null , cursor : 0 , contentStart : 0 , contentEnd : - 1 , remainder : 0 } ; }
Include one stream in another
@param {String} [options.placeholderStart="<!-- include "] The start placeholder
@param {String} [options.placeholderStart=" -->"] The end placeholder
@param {Integer} [options.maxPathLength=512] The maximum length of a path
@param {String} [options.delmiter="] The delimiter to use for filenames, a single character
@param {Function} getStream A function that when provided with a filename
and callback will return a stream to be included.
Include one stream in another