ESPRIMA(1)

πŸ“¦ version 4.0.1, in ubuntu stonking

πŸ’– ESPRIMA β€” the Unix manual page, but make it make sense πŸ’–

okay bestie, sit down, we're learning esprima today and honestly? it's giving compiler-nerd royalty. this is the ESPRIMA(1) page, straight from the User Commands section of your manual. she's a command-line tool. she parses JavaScript. she slays. periodt. ✨


🌸 NAME 🌸

esprima β€” a high performance, standard-compliant ECMAScript parser. no cap, that's the whole brand. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

esprima [options] [file.js]

that's it. options go in, a file goes in (or doesn't, no pressure), and esprima does her thing. the [file.js] is in brackets because it's optional, bestie, she's flexible like that πŸ’…


✨ OPTIONS ✨

here's the full menu, every single one, nothing skipped, i would never do you like that 🫢

  • --version β€” shows you the program's version number and then dips (exits). quick little flex. πŸŽ€
  • -h, --help β€” prints this help message and exits. your girl is helpful AND polite. use this when you're lost, we've all been there πŸ™ˆ
  • --comment β€” gathers up all line and block comments and puts them in an array. she's collecting them. like little stickers. πŸ”₯
  • --attachComment β€” attaches those comments to nodes. so the comments aren't just vibing in a list, they're attached. bonded. soulmates, even. πŸ’œ
  • --loc β€” include line-column location info for each syntax node. so every node knows exactly where it lives, line and column, no ambiguity. main character energy with a full address ⭐
  • --range β€” include index-based range for each syntax node. same idea, but measured in index positions instead. yes bestie, both exist. yes you can use both. 🌈
  • --raw β€” display the raw value of literals. the unfiltered, unedited, straight-out-the-source version. no makeup, still iconic πŸ’„
  • --tokens β€” list all tokens in an array. every last one. the whole roster. πŸ’€
  • --tolerant β€” tolerate errors on a best-effort basis. it's marked (experimental), so tread gently, she's trying her best fr fr 😭
  • --tokenize β€” only tokenize, do not parse. so she breaks the code into tokens and then just... stops. doesn't go any further. a queen who knows her limits βœ‹
  • --module β€” tolerate errors on a best-effort basis (experimental).
okay yes, i know, the description of --module is literally identical to --tolerant up there. not my typo. not me being lazy. that's what's on the page, and i'm not about to invent lore that isn't there. we report, you decide 🫑

πŸ“ a lil recap for the girlies who scrolled πŸ“

  • parser? yes. high performance? yes. standard-compliant? yes. ECMAScript? yes, that's JavaScript, iykyk.
  • options are flags you sprinkle on like glitter.
  • [file.js] is optional, she'll work either way.
  • vote --tolerant and --module most likely to say the exact same thing. πŸŽ€

esprima 4.0.1, February 2026 β€” that's the version and the date, and honestly? she's still that girl. go parse something gorgeous, bestie. mwah πŸ’‹πŸ’…πŸ¦‹βœ¨

πŸ“¦ where this page comes from