apply-transform
Applies a transform to an input string and calls back with result, mostly useful for testing transforms
var applyTransform = assert = through = ; { return } var tx = ;tx_writableStatedecodeStrings = false;
Installation
npm install apply-transform
API
/**
* Applies the given transform to the input and calls back with result.
*
* @name
* @function
* @param {TransformStream} transform to apply to the @see input
* @param {String} input to transform
* @param {Function} cb function(err, output) { }
* - {Error} err: is set if an error occurred
* - {String} output: the result of applying the @see transform to the @see input
* @return {ReadableStream} that streams the input string char by char, useful for debugging failing transforms
*/
License
MIT