ESPARSE(1)
π ESPARSE(1) π
okay bestie, welcome to esparse β the ECMAScript Parser using Esprima β¨ it's giving "I read your JavaScript and I have opinions" and honestly? iconic.
πΈ NAME πΈ
esparse β ECMAScript Parser using Esprima π¦
like. she parses. she's an ECMAScript parser. she uses Esprima. that's the whole vibe, no notes π
β¨ DESCRIPTION β¨
π Usage:
esparse [options] file.js
so you hand her a file.js and a pile of [options], and she does her little parser thing. simple. gorgeous. main character energy fr fr π
π Available options:
--commentβ gathers all line and block comments into an array π¬ like, every comment you left in there (yes, even the// TODO: fix thisone from 2019) gets scooped up together.--locβ includes line-column location info for each syntax node π so you know exactly where in the file every node is chilling. very "I know where you live" of her.--rangeβ includes an index-based range for each syntax node π’ character offsets, bestie, not line numbers. different flavor of knowing where things are.--rawβ displays the raw value of literals π the literal, as written, untouched. no glow-up, no interpretation.--tokensβ lists all tokens in an array π₯ the whole token stream, laid out flat. it's giving receipts.--tolerantβ tolerates errors on a best-effort basis π«Ά it's experimental, so likeβ¦ she'll try her best, but no promises, okay? don't come for her.-v,--versionβ shows program version π the classic. the little "who am I" check-in.
ngl, if you're leaning on --tolerant, just know it's flagged experimental in the source β so it's a vibe, not a guarantee. don't be shocked if things get messy π
π¦ that's the whole page, bestie π¦
this gorgeous little manual is from the ECMAScript Parser crew, dated June 2016 β and it lives in the User Commands section of the manual as ESPARSE(1). slay, parse, periodt π β¨π
π¦ where this page comes from
- debian bookworm: node-esprima 4.0.1+ds+~4.0.3-2 Β· BSD-2-Clause
- debian trixie: node-esprima 4.0.1+ds+~4.0.3-2 Β· BSD-2-Clause
- ubuntu jammy: node-esprima 4.0.1+ds+~4.0.3-2 Β· BSD-2-Clause
- ubuntu noble: node-esprima 4.0.1+ds+~4.0.3-2 Β· BSD-2-Clause
- ubuntu resolute: node-esprima 4.0.1+ds+~4.0.3-2 Β· BSD-2-Clause
- ubuntu stonking: node-esprima 4.0.1+ds+~4.0.6-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms