Constructuring
About
Constructuring is a ndoe module that transforms Javascript code that uses ES6's destructuring feature into code that runs on today's browsers.
Example
Transforming a javascript file.
var transformSource = transformSource;var source = fs;console;
Transforming an esprima AST. This option is prefered when you are doing more than one transformation on your code.
var transform = transform;var esprima = ;var escodegen = ; var source = fs;var ast = esprima;;// do more transformations on the same astconsole;
Contributing
Running tests
Make sure you install mocha then run:
mocha --harmony