Skip to content

A Node.js wrapper around the WMIC

Notifications You must be signed in to change notification settings

Sendery/node-wmic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-wmic

A Node.js wrapper around the WMIC. Transform every WMIC command output to JavaScript array.

Attention, this is the v2 version which support all WMIC command, and is not compatiable with v1 version. For 1.0.0+ version, checkout v1 branch.

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

About

A Node.js wrapper around the WMIC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%