Node
This module allows you to start your application with access to application arguments, environment variables and the standard input and output streams.
To learn how to use this module's initialize
function, take a closer look at the Node.Program
module.
Initialization
Contains information about the context your application was initiated.
platform
andcpuArchitecture
tells you something about the operating system and machine your application is running on.args
is anArray
of the arguments passed to your application.stdout
,stderr
andstdin
are streams you can use to communicate with the outside world. Take a closer look at theStream
module for more information.
Initialize a NodeJS application. In return you're granted the Configuration
record, which contains useful context.
Info
The platform, or operating system, that your application is running on.
The CPU architecture your application is running on.
Get a Dict
of environment variables.
Exit
Terminate the program immediatly. It will not wait for tasks like http calls or file system writes, so only use this if you've reached a state where it makes no sense to continue.
Terminate the program immediatly. It will not wait for tasks like http calls or file system writes, so only use this if you've reached a state where it makes no sense to continue.
The exit code can be read by other processes on your system. Any value other than 0 is considered an error.
Set the error code that the program will return once it finishes.
Note: This will not terminate your program, so things like http calls or writes to the filesystem will be allowed to complete. However, the program will only exit once there are no ongoing tasks.