esparse - ECMAScript Parser using Esprima
- esparse [options] file.js
Available options:
- Gather all line and block comments in an array
- --loc
- Include line-column location info for each syntax node
- --range
- Include index-based range for each syntax node
- --raw
- Display the raw value of literals
- --tokens
- List all tokens in an array
- --tolerant
- Tolerate errors on a best-effort basis (experimental)
- -v, --version
- Shows program version