I saw a Misha answer you
https://github.com/mishoo/UglifyJS2/issues/122
Two possible ways:
run uglifyjs --selfto get the UglifyJS assembly, which you can download in a browser (or in any JS environment), and you can use the API described here .
lib/( utils.js ast.js, ). , - API, UglifyJS..
tools/node.js, , Node ( require).