Cross-platform PCI info in nodejs.
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.
npm install --save pciinfo
If you want pciinfo
in your path, do npm install -g pciinfo
.
Usage: pciinfo [options]
Options:
-h, --help output usage information
-p, --pci [value] your pci.ids.gz file
You should be good-to-go.
You should be good-to-go.
lspci
(from pciutils) needs to be in your path.