Globals

Available global elements.

Object require(sJSModuleFilename)

Get the module exports object of JavaScript module with given filename.

Arguments:

Return

Module exports object of the JavaScript module with given filename.

Object process

A global object which can be be accessed from anywhere.

String process.version

String containing version information of the post-processor library.

String process.bs_name

String containing the name of the post-processor.

String process.architecture

String containing the cpu architecture name.

String process.platform

String containing the operating system name.

String process.language

String representing the current user interface language. Possible values are the following:

String process.username

String containing the name of the user as reported by the operating system.

Object process.binding(sBuiltinBinaryModuleName)

Get the module exports object of builtin binary module with given name.

Arguments:

Return

Module exports object of builtin binary module with given name.

Object requireBuiltin(sBuiltinJSModuleName)

Get the module exports object of builtin JavaScript module with given name.

Arguments:

Return

Module exports object of builtin JavaScript module with given name.

Object process.getMemStat()

Get current memory statistics.

Return

Object containing current memory statistics. Includes information about virtual memory and V8 memory.

void process.print(sMessage)

Output of a message.

Arguments:

void process.printMonospaced(sMessage)

Outputs a message with a monospaced font.

Arguments:

void process.printError(sMessage)

Output of an error message.

Arguments:

void process.printErrorMonospaced(sMessage)

Outputs an error message with a monospaced font.

Arguments:

void process.printWarning(sMessage)

Output of a warning message.

Arguments:

void process.printWarningMonospaced(sMessage)

Outputa a warning message with a monospaced font.

Arguments:

void process.printInfo(sMessage)

Output of an informative message.

Arguments:

void process.printInfoMonospaced(sMessage)

Outputs an informative message with a monospaced font.

Arguments:

void process.printLogFile(sMessage)

Outputs an informative message to log file. Position and name of the log file can be defined by the host application or other authorities. If the position and name of the log file is not defined, then a unique log file will be created in the temporary files folder.

Arguments:

void process.flushLogFile()

Causes buffered data to be written to log file. Extensive usage can result in noticeable slowdown.