/** * Partial Rhino implementation of Node.js' `os` module. * @module os * @author Jeff Williams * @see http://nodejs.org/api/os.html */ exports.EOL = String( java.lang.System.getProperty('line.separator') ); // clearly not accurate, but probably good enough exports.platform = function() { if ( String(java.lang.System.getProperty('os.name')).match(/^[Ww]in/) ) { return 'win32'; } else { return 'linux'; } };