0.0.1 • Published 10 years ago

sync-transform v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

sync-transform experimental

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

sync-transform

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.