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: enabled

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.
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