RingoJS

Module system

This module provides an implementation of the system module compliant to the CommonJS System/1.0 specification.

Beyond the standard, a "print" function and some properties for Narwhal compatibility are provided.

Functions

Properties


args

An array of strings representing the command line arguments passed to the running script.


env

An object containing our environment variables.


exit (status)

Terminates the current process.

Parameters

number status

The exit status, defaults to 0.


print ()

A utility function to write to stdout.


stderr

A TextStream to write to stderr.


stdin

A TextStream to read from stdin.


stdout

A TextStream to write to stdout.