NJS(1) User Commands NJS(1)

njs - JavaScript for Nginx

njs [options] [-c string | script.js | -] [script args]

Interactive shell: enabled

print AST.
specify the command to execute.
print disassembled code.
set failure exit code.
disabled denormals mode.
set the maximum stack size in bytes.
load as ES6 module (script is default).
set path prefix for modules.
disable interactive introduction prompt.
ignore unhandled promise rejection.
sandbox mode.
print njs version and exit.
disable "unsafe" mode.
run code from a file or stdin.
September 2024 njs 0.8.5