node-uglifyast
Convert back and forth between UglifyJS ASTs and JavaScript objects.
Example:
var uglifyAst = ;console;
Produces:
[ 'object',
[ [ 'foo',
[ 'array', [ [ 'string', 'bar' ], [ 'num', 9 ], [ 'num', 4 ] ] ] ],
[ 'quux', [ 'object', [ [ 'baz', [ 'num', 4 ] ] ] ] ] ] ]
And the other way around:
console;
Output:
[ 'abc', 1 ]
License
3-clause BSD license -- see the LICENSE
file for details.