npm.io
1.0.0 • Published 11 years agoCLI

pciinfo

Licence
MIT
Version
1.0.0
Deps
3
Vulns
1
Weekly
0
Stars
1

pciinfo

Cross-platform PCI info in nodejs.

npm Build Status Code Climate

usage

var pciinfo = require('pciinfo');

pciinfo(function(error, info){
	if (error) throw error;
	console.log(info);
});

I also included a CLI util. pciinfo will give you a nice JSON list of your PCI devices.

installation

npm install --save pciinfo

If you want pciinfo in your path, do npm install -g pciinfo. Both utils have a --help flag, so you can learn more about how they work.

OSX

You will need to install bin/DirectHW.pkg for this to work. It will install DirectHW.kext in your system directory.

Windows

You should be good-to-go.

Other Operating Systems

lspci (from pciutils) needs to be in your path.

Keywords