Skip to content
Advertisement

find the machine manufacturer name using NodeJS, for eg, HP, Dell, Lenovo, etc

Is there a way to find the machine manufacturer name using NodeJS, for eg, HP, Dell, Lenovo, etc I require it for a report being generated and it is for one of the fields

Advertisement

Answer

There is a library that does what you want, check it out here: https://github.com/sebhildebrandt/systeminformation

Here is a small example what you would need to do with it to get your result:

const si = require('systeminformation');

const systemInfo = await si.system();

console.log(systemInfo.manufacturer);
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement