QJS(1)
π 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,qjswill 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 theQJS_DUMP_FLAGSenvironment 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 typeqjsand 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 defaultqjswill 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
- arch rolling: quickjs-ng 0.18.0-1 Β· MIT
- nixpkgs unstable: quickjs-ng 0.18.0
- ubuntu stonking: qjs 0.16.2-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms