A JavaScript AST optimizer


Esoptimize is a JavaScript optimizer that is designed to work well with esprima and escodegen.

Esoptimize can be installed using npm install esoptimize and used by calling esoptimize.optimize(ast) where ast is a JavaScript abstract syntax tree that conforms to the SpiderMonkey Parser API format.

  • Constant propagation
  • Dead code elimination