token-filter
A Transform stream that replaces delimited keys (tokens) with matching values, like the Ant Filter task.
Usage
var fs = ;var tokenFilter = ; // input.txt => "Hello, @name@!"fs ;// output.txt => "Hello, World!"
API
tokenFilter(context, [options])
context
{Object} Values to interpolate into matched keys.options
{Object} (optional)tokenDelimiter
{String} The string that begins and ends a token (default "@").highWaterMark
{Number} The stream's highWaterMark, defaulting to fs.ReadStream's default (64KB).
Additional stream options are detailed in the core manual.