package
Takes a synchronous function that transforms a string and converts it into a transform compatible with browserify, catw and mutiny.
npm install transformifyGitHub-flavored package documentation.
Across all versions, last 30 days.
134,593 in 30 days
Runtime metadata.
Tagged topics.

Takes a synchronous function that transforms a string and converts it into a transform compatible with browserify, catw and mutiny.
var transformify = require('transformify');
function toUpper(s) {
return s.toUpperCase();
}
require('fs').createReadStream(__filename)
.pipe(transformify(toUpper)(/* file not used */))
.pipe(process.stdout);VAR TRANSFORMIFY = REQUIRE('TRANSFORMIFY')
FUNCTION TOUPPER(S) {
RETURN S.TOUPPERCASE();
}
REQUIRE('FS').CREATEREADSTREAM(__FILENAME)
.PIPE(TRANSFORMIFY(TOUPPER)(/* FILE NOT USED */))
.PIPE(PROCESS.STDOUT);npm install transformify/**
* Takes a synchronous function that transforms a string and returns a transform compatible with browserify, catw and mutiny.
*
* @name transformify
* @function
* @param {Function(String):String} fn
* @return {Function(String):TransformStream} function that returns a transform stream
*/MIT
Estimated unpacked size across 11 packages.
900.8 kB
Includes dependencies.