ringo-0_10-bin
ringo-0_10-bin is a Node.js binary wrapper for Ringo 0.10.
Installation
$ npm install --save ringo-0_10-bin
Usage
var child_process = require('child_process');
var ringo = require('ringo-0_10-bin');
// Using `child_process.spawn`
var proc = child_process.spawn(ringo.path, ['file.js']);
proc.stdout.on('data', function (data) {
console.log(data);
});
proc.stderr.on('data', function (data) {
console.log(data);
});
proc.on('close', function (code) {
console.log('Code ' + code);
});
CLI
$ npm install --global ringo-0_10-bin
$ ringo0_10 --help
Usage:
ringo [option] ... [script] [arg] ...
Options:
-b --bootscript FILE Run additional bootstrap script
-c --charset CHARSET Set character encoding for scripts (default: utf-8)
-D --java-property K=V Set Java system property K to value V
-d --debug Run with debugger GUI
-e --expression EXPR Run the given expression as script
-h --help Display this help message
-H --history FILE Use custom history file (default: ~/.ringo-history)
-i --interactive Start shell after script file has run
-l --legacy-mode Enable __parent__ and __proto__ and suppress warnings
-m --modules DIR Add a directory to the module search path
-o --optlevel OPT Set Rhino optimization level (-1 to 9)
-p --production Disable module reloading and warnings
-P --policy URL Set java policy file and enable security manager
-s --silent Disable shell prompt and echo for piped stdin/stdout
-V --verbose Print java stack traces on errors
-v --version Print version number and exit