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
- Host: GitHub
- URL: https://github.com/evanw/esoptimize
- Owner: evanw
- Created: 2013-04-17T23:52:30.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-18T05:53:06.000Z (about 12 years ago)
- Last Synced: 2025-04-11T00:12:44.160Z (about 2 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 18
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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