njs - JavaScript for Nginx
njs [options] [-c string | script.js | -] [script args]
Interactive shell: disabled
- -a
- print AST.
- -c
- specify the command to execute.
- -d
- print disassembled code.
- -e <code>
- set failure exit code.
- -f
- disabled denormals mode.
- -j <size>
- set the maximum stack size in bytes.
- -p <path>
- set path prefix for modules.
- -q
- disable interactive introduction prompt.
- -r
- ignore unhandled promise rejection.
- -s
- sandbox mode.
- -t script|module
- source code type (script is default).
- -v
- print njs version and exit.
- -u
- disable "unsafe" mode.
- script.js |
-
- run code from a file or stdin.