steal-tools transform

  • function

Transform a module from the command line.

steal-tools transform [--OPTION_NAME OPTION_VALUE]...


  1. OPTION_NAME {String}

    Any config, pluginifierOptions, or options name in transformImport or transform.

  2. OPTION_VALUE {String}

    The value of OPTION_NAME. The ignores option will be converted to a regular expression.



Writes the output to the console.


Note: The steal-tools transform command-line utility calls steal-tools.transform and steal-tools.transformImport internally. This page documents the specifics of the command-line utility. Read steal-tools.transform's documentation for how to use transform in various workflows and detailed information on the options available.

Access steal-tools in node_modules/.bin, like:

> ./node_modules/.bin/steal-tools transform \
           --config app/config.js \
           --main app \
           --ignores foo/.+
           > app.js

Or, steal-tools can be installed into the command line, like:

> npm install steal-tools -g

Then you can run steal-tools transform, like:

> steal-tools transform \
           --config app/config.js \
           --main app \
           --ignores foo/.+
           > app.js
Help us improve StealJS by taking our community survey