Runtime
Runtime global object holds information about os, process and runtime.
Runtime.platform
Returns current platform as a string
Possible values:
linux
win32
darwin
freebsd
openbsd
unix
unknown
Runtime.pid
Returns process id (number).
Runtime.version
Returns PandJS’s version as a string - semantic version prefixed with v
(for example "v1.0.0"
)
Runtime.argv
Returns the script arguments (as an array of strings) to the program.
Runtime.cwd()
Returns current working directory as a string.
Runtime.exit()
Forcefully exits process without waiting for pending operations.
Runtime.sleep()
Pauses the execution of the main thread for the specified number of milliseconds.