OS Manuals

/usr/lib/jvm/java-25-graalvm/bin/js

GraalVM 25 with Node.js

From graalvm-25.1-ce-nodejs 25.1.3-r8 (enterprise-packages), captured 2026-11-08 by running js --help (exit 0). permalink

Usage: js [OPTION]... [FILE]...
Run JavaScript FILEs on the Graal.js engine. Run an interactive JavaScript shell if no FILE nor --eval is specified.

Arguments that are mandatory for long options are also mandatory for short options.

Basic Options:
  -e, --eval CODE       evaluate the code
  -f, --file FILE       load script file
  --module FILE         load module file
  --script-file FILE    load script file in strict mode
  --print-result        print the return value of each FILE
  --version             print the version and exit
  --show-version        print the version and continue
  --shared-engine       run in shared polyglot engine mode

Runtime options:
  --native                                     Ensure to run in Native mode.
  --jvm                                        Ensure to run in JVM mode.
  --vm.[option]                                Pass options to the host VM. To see available options, use '--help:vm'.
  --log.file=<String>                          Redirect guest languages logging into a given file.
  --log.[logger].level=<String>                Set language log level to OFF, SEVERE, WARNING, INFO, CONFIG, FINE,
                                               FINER, FINEST or ALL.
  --help                                       Print this help message.
  --help:vm                                    Print options for the host VM.
  --help:engine                                Print engine options.
  --help:compiler                              Print engine compiler options.
  --help:all                                   Print all options.
  --version:graalvm                            Print GraalVM version information and exit.
  --show-version:graalvm                       Print GraalVM version information and continue execution.

Languages:
  [id]        [name]                  [website]
  js          JavaScript              https://www.graalvm.org/javascript/
  wasm        WebAssembly             https://www.graalvm.org/webassembly/

Tools:
  [id]        [name]                  [website]
  agentscript Agent Script
  coverage    Code Coverage           https://www.graalvm.org/tools/code-coverage/
  cpusampler  CPU Sampler             https://www.graalvm.org/tools/profiling/
  cputracer   CPU Tracer              https://www.graalvm.org/tools/profiling/
  dap         Debug Protocol Server   https://www.graalvm.org/tools/dap/
  heap        Heap Dump
  heapmonitor Heap Allocation Monitor
  insight     Insight                 https://www.graalvm.org/tools/graalvm-insight/
  inspect     Chrome Inspector        https://www.graalvm.org/tools/chrome-debugger/
  lsp         Language Server         https://www.graalvm.org/tools/lsp/
  memtracer   Memory Tracer           https://www.graalvm.org/tools/profiling/
  sandbox     Sandbox                 https://www.graalvm.org/dev/reference-manual/embed-languages/sandbox-resource-limits/

  Use --help:[id] for component options.

See http://www.graalvm.org for more information.
Options (14)
OptionDescriptionSource
-e, --eval CODEevaluate the codehelp
-f, --file FILEload script filehelp
--module FILEload module filehelp
--script-file FILEload script file in strict modehelp
--print-resultprint the return value of each FILEhelp
--versionprint the version and exithelp
--show-versionprint the version and continuehelp
--shared-enginerun in shared polyglot engine modehelp
--nativeEnsure to run in Native mode.help
--jvmEnsure to run in JVM mode.help
--vm optionPass options to the host VM.help
--log.file StringRedirect guest languages logging into a given file.help
--log logger].level=<StringSet language log level to OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST or ALL.help
--helpPrint this help message.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.