The ultimate transformation/build/compilation middleware/command line/etc. system for node.js
For a list of supported languages, check out transformers. Here are a few highlights:
You also get the following functionality for free:
If you think I've missed something, be sure to open an issue or submit a pull request.
First install the
$ npm install transform
Then make sure you also install whichever transform(s) you depend on, e.g.
$ npm install jade coffee-script
To get a transform, just pass the name of the transform, e.g.:
var coffee = 'coffee-script';var jade = 'jade';
To serve a file with default options, just give it a file name:
File paths are always resolved relative to the calling file using node's "require" algorithm.
You can change these settings on a case by case basis, e.g.
You can change options for all environments, or just specific ones: