Main API
October 13, 2015 ยท View on GitHub
var streamline = require('streamline');
streamline.register(options)
Registersrequirehandlers for streamline.
optionsis a set of default options passed to the transformation.streamline.run()
runs_nodecommand line analyzer / dispatcher{ code, map } = streamline.transform(source, options)
Transforms a source script.
optionsis a set of options passed to the transformation engine.{ code, map } = streamline.transformFileSync(path, options)
Transforms a source file synchronously.
optionsis a set of options passed to the transformation engine.{ code, map } = streamline.transformFile(_, path, options)
Transforms a source file.
optionsis a set of options passed to the transformation engine.streamline.compile(_, paths, options)
Compiles streamline source files inpaths.
pathsmay be a list of files or a list of directories which will be traversed recursively.
optionsis a set of options for thetransformoperation.