process.exitCode


当进程正常结束,或通过process.exit()结束但未传递参数时,此数值标识进程结束的状态码。

process.exit(code)指定一个状态码,会覆盖process.exitCode的原有值。

A number which will be the process exit code, when the process either exits gracefully, or is exited via process.exit() without specifying a code.

Specifying a code to process.exit(code) will override any previous setting of process.exitCode.