QJS(1)

πŸ“¦ version 0.18.0, in arch rolling, nixpkgs unstable, ubuntu stonking

πŸ’– QJS(1) β€” the glow-up edition πŸ’–

okay bestie, sit down, hydrate, and let me tell you about qjs, from the General Commands Manual section of your terminal's dream journal. This is the page for the QuickJS-NG JavaScript interpreter, and yes, she's that girl. πŸ‘‘


✨ SYNOPSIS ✨

qjs [OPTION]... [FILE [ARGUMENT]...]

that's it. that's the whole invocation. the way she just takes a file and some arguments and runs with it. iconic. πŸ’…


🌸 DESCRIPTION 🌸

QuickJS-NG is a small and embeddable JavaScript engine, and her whole goal in life is to support the latest ECMAScript specification. no cap. fr fr.

The qjs executable runs the JavaScript interpreter β€” and she comes with a simple standard library and a REPL bundled in like free stickers with your order. the way that's just included? obsessed. 🫢


πŸ’œ OPTIONS πŸ’œ

every single flag, accounted for. no skipping, no summarising, we don't do that here. πŸŽ€

  • -c, --compile β€” Compile FILE into a standalone executable, bundling the interpreter and the script together. it's giving "make it a whole independent girlboss". πŸ‘‘
  • -C, --script β€” Load FILE as a classic JavaScript script. by default, qjs will try to detect if FILE is a JS script or an ES module, but this one says "no, bestie, it's a script, trust me". πŸ™ˆ
  • -d, --dump β€” Dump memory usage statistics. numbers! data! she's showing you her receipts. πŸ’€
  • -D FLAGS, --dump-flags=FLAGS β€” Specify debug dump flags. these can ALSO be set through the QJS_DUMP_FLAGS environment variable, so you've got options, queen. 🌈
  • -e EXPR, --eval EXPR β€” Evaluate EXPR and exit. one-and-done. she said "I'll do this one thing and then I'm leaving". πŸ’…
  • -h, --help β€” Print a help message and exit. when you're lost, she's got you. πŸ₯Ί
  • -i, --interactive β€” Enter interactive mode. this is the default if no FILE is provided β€” so if you just type qjs and hit enter, you're in the group chat. πŸ’¬
  • -I IFILE, --include IFILE β€” Include an additional file. more files, more friends. πŸ«‚
  • --memory-limit N β€” Limit memory usage to N Kbytes. setting boundaries, as she should. βœ‹
  • -m, --module β€” Load FILE as an ECMAScript module. again, by default qjs will try to detect if FILE is a JS script or an ES module β€” but this flag is you saying "it's a module, periodt". ✨
  • --o OUTPUT, --out OUTPUT β€” Output file name when creating a standalone executable with -c. you get to name the baby. 🍼
  • --stack-size N β€” Limit the stack size to N Kbytes. keep it contained, bestie. πŸŽ€
  • --std β€” Make 'std', 'os' and 'bjson' available to the script. the whole squad, unlocked. πŸ”₯
  • -T, --trace β€” Trace memory allocation. following the memory around like a detective with a clipboard. πŸ•΅οΈβ€β™€οΈ
  • -v, --version β€” Print version string and exit. "who am I? good question." ⭐
  • -q, --quit β€” Instantiate the interpreter and immediately exit. walk in, look around, leave. main character exit. πŸ’€
ngl, a bunch of these are about memory β€” limits, dumps, traces β€” so if your script is eating RAM like it's a bottomless brunch, that's the section to revisit. πŸ“

πŸ¦‹ SEE ALSO πŸ¦‹

πŸ“– Man pages

  • qjsc(1) β€” her sibling, also giving compiler energy. go say hi. πŸ’–

🌐 Online documentation

Detailed documentation about the project can be found at:

https://quickjs-ng.github.io/quickjs/

that's the link, bestie, bookmark it, iykyk. 🌈


and that's the whole page!! this one came from the QuickJS-NG crew, dated 2026-07-22, living in the General Commands Manual section as page QJS(1). go forth and run some JavaScript, you're literally so good at this. mwah. πŸ’‹βœ¨πŸŽ€

πŸ“¦ where this page comes from