0.0.1 • Published 11 years ago
sync-transform v0.0.1
sync-transform ![npm.io experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)
Synchronously retrieve the output of a browserify-style transform stream.
Note: this is a hack, but a little kinder on your system than using exec-sync.
Usage
result = transform(filename, contents, transforms)
filename
is the absolute path to the original file.contents
should be the contents of said file, as either a string or a buffer.transforms
is an array of transform modules – these should be specified as absolute paths.
Returns the transformed contents of a file as a string.
License
MIT. See LICENSE.md for details.