Small project that parses javascript input and evaluates based on a set of rules
This is a quick and dirty JS parser that does a couple of things:
Allows the user to specify a whitelist of "functionalities"
Allows the user to specify a blacklist of "functionalities"
Allows the user to specify a rough structure of what the input code needs to follow
Allows the user to input some code and be analyzed based on the blacklist, whitelist, and rough structure defined
yarn install
yarn start
Navigate your browser to http://localhost:3000
Play around!
You can also run some tests: yarn test
Compared to Esprima:
Criteria | Acorn | Esprima | Commentary |
---|---|---|---|
Speed | - | - | Similar |
Size | x | 3MB vs 20MB+ | |
Community | x | Acorn more active | |
Code Climate | x | 1.0 vs 2.3 | |
Browser Support | x | Acorn -- IE5 | |
Documentation | x | ||
License | x | MIT vs BSD |
Implementation
UI