An open API service indexing awesome lists of open source software.

https://github.com/evanw/esoptimize

A JavaScript AST optimizer
https://github.com/evanw/esoptimize

Last synced: about 2 months ago
JSON representation

A JavaScript AST optimizer

Awesome Lists containing this project

README

        

# Esoptimize

Esoptimize is a JavaScript optimizer that is designed to work well with [esprima](http://github.com/Constellation/esprima) and [escodegen](http://github.com/Constellation/escodegen).

### Usage

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](https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API) format.

### Features

* Constant propagation
* Dead code elimination