Utility for operation system information
npm install node-wosnode-wos is a small wrapper to help you with the most commom operating system information.``bash`
npm i node-wos --save
`bash`Global Installation
npm i -g node-wos
`javascript
var wos = require('node-wos');
console.log(wos.isLinux()); // true
console.log(wos.platform); // linux
console.log(wos.arch); // 64bit
console.log(wos.getOSName()); // ubuntu
// Container to require('os')
console.log(wos.OS);
`
#### return
- String Platform can be windows, linux, mac, freeBSD, solaris
#### return
- String Architecture can be 64bit, 32bit, ARM.
.#### return
- Object Equals to
require('os')$3
Verify if the current os is windows.#### return
- Boolean
$3
Verify if the current os is linux.#### return
- Boolean
$3
Verify if the current os is mac.#### return
- Boolean
$3
Verify if the current os is solaris.#### return
- Boolean
$3
Verify if the current os is freeBSD.#### return
- Boolean
$3
Attemp to discover what the current operation system name. Ex: ubuntu, fedora, gentoo, Windows 10 Single Language...#### params
- boolean
verbose : returns a non treated output for the os name command#### return
- String Operating system name or
{platform} {arch}Cli API
To see the all the cli options just execute`bash
wos -help
or
wos
`Contributing
node-wos is built using ecma script 6 and use babeljs to convert the code. To develop your changes just clone the project and execute the grunt task.`bash
git clone https://github.com/mapaiva/node-wos.git
cd node-wos
npm install
npm run dev#To build
npm run build
``