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:
JavaScript
x
6
1
const si = require('systeminformation');
2
3
const systemInfo = await si.system();
4
5
console.log(systemInfo.manufacturer);
6