QJS(1) General Commands Manual QJS(1)

qjs - QuickJS-NG JavaScript interpreter

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

QuickJS-NG is a small and embeddable JavaScript engine. It aims to support the latest ECMAScript specification.

The qjs executable runs the JavaScript interpreter. It includes a simple standard library and REPL.

Compile FILE into a standalone executable, bundling the interpreter and the 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.
Dump memory usage statistics.
Specify debug dump flags. These can also be set through the QJS_DUMP_FLAGS environment variable.
Evaluate EXPR and exit.
Print a help message and exit.
Enter interactive mode. This is the default if no FILE is provided.
Include an additional file.
Limit memory usage to N Kbytes.
Load FILE as an ECMAScript module. By default, qjs will try to detect if FILE is a JS script or an ES module.
Output file name when creating a standalone executable with -c.
Limit the stack size to N Kbytes.
Make 'std', 'os' and 'bjson' available to the script.
Trace memory allocation.
Print version string and exit.
Instantiate the interpreter and immediately exit.

qjsc(1)

Detailed documentation about the project can be found at: https://quickjs-ng.github.io/quickjs/

2026-07-22