operatingsystem
v1.0.1
Published
Get operating system specific information
Downloads
2
Readme
operatingsystem.js
node implementation of oslib and goslib
Get specific operating system version, edition and other properties
Usage
$ npm install --save operatingsystem
const os = require("operatingsystem");
var info = os.current();
info.getDisplay().then((display) => {
console.log(display); // Will print Windows 10 or macOS 10.12 Sierra etc...
});
if (info.type === os.OperatingSystemType.Windows) {
console.log(info.getEdition()) // prints 10 on Windows 10
}