Scroll to navigation

NJS(1) User Commands NJS(1)

NAME

njs - JavaScript for Nginx

DESCRIPTION

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

Interactive shell: disabled

OPTIONS

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