mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 17:33:19 +03:00
18 lines
No EOL
480 B
JavaScript
18 lines
No EOL
480 B
JavaScript
/**
|
|
* Partial Rhino implementation of Node.js' `os` module.
|
|
* @module os
|
|
* @author Jeff Williams <jeffrey.l.williams@gmail.com>
|
|
* @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';
|
|
}
|
|
}; |