CS代写 THE PROCESS OBJECT

THE PROCESS OBJECT
Andrew University
Computer Science Department

Copyright By PowCoder代写 加微信 powcoder

THE PROCESS OBJECT
You do not need to use require() to access the Process object

THE PROCESS OBJECT

ONE OF THE GLOBAL OBJECTS
The process object provides information about, and control over, the current Node.js process.

HOW TO LOAD IT?

“PROCESS.VERSIONS”

“PROCESS.RELEASE”

Stdin and Stdout
NEED INTERFACE WITH COMMAND LINE?

COMMAND LINE ARGUMENTS

Process.cwd
Is an absolute path of the process that is running the script, which may not be the same as where you invoked it.
For example:
C:/node ../scripts/prod/program.js
PROCESS.CWD

PROCESS.ENV
To read your environmental values.

process.on(“event- name-goes here”, () => {
//do something
ONE OF THE GLOBALS

(PARTIAL LISTING) PROCESS EVENTS
beforeExit disconnect
message uncaughtException

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com