UNPKG

transformify

Version:

Takes a synchronous function that transforms a string and converts it into a transform compatible with browserify, catw and mutiny.

10 lines (7 loc) 206 B
var transformify = require('../') function toUpper(s) { return s.toUpperCase(); } require('fs').createReadStream(__filename) .pipe(transformify(toUpper)(/* file not used */)) .pipe(process.stdout);