Readme
Very stupid detection of OS version and Name for node(io).js More usable for Atom's Electron.
Warning!
This package under development! Now detect only Mac OS X
Usage
Install in your project:
npm install os.js --save
And simple use:
var osjs = ; console;// Output: // OS X 10.10 Yosemite
And for some user's cli:
$ os.jsOS X 10.10 Yosemite
Testing
Tests use Mocha and Should
git clone --recursive https://github.com/LestaD/os.js.gitcd os.jsnpm installnpm test
Tested on OS X 10.10, Ubuntu 15 with iojs-v2.5.0, iojs-v3.0.0, iojs-v3.2.0
Need testing on Windows 7, 8, 8.1, 10.
Not detect right version of some Linuxes