node-wmic
v2.0.0
Published
A Node.js wrapper around the WMIC
Downloads
148
Readme
node-wmic
A Node.js wrapper around the WMIC. Transform every WMIC command output to JavaScript array.
var wmic = require('node-wmic');
Install
npm install node-wmic --save
Example
const wmic = require('node-wmic');
wmic.CPU().then(([cpu]) => {
console.log(cpu.AddressWidth);
console.log(cpu.Level);
});
wmic.DiskDrive().then(items => {
console.log(items.length);
console.log(items[0].Description);
});