Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-wmic

ruiming295ISC2.0.0TypeScript support: included

A Node.js wrapper around the WMIC

wmic

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);
});