Skip to content

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

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