access hardware information in nodejs

17,640

Solution 1

This question is a bit old but it returned in my google search, so I'll share a lib that I found. I'm not sure it is good because I didn't really use it, but seems nice despite it still has no support for Windows platform: https://github.com/sebhildebrandt/systeminformation

Solution 2

The os built in module will provide most of what you require and be cross-platform compatible.

https://nodejs.org/api/os.html

Using this module you can determine what platform you are running on and get other information your require using platform specific commands.

Share:
17,640
Ali Naqvi
Author by

Ali Naqvi

With a Bachelor’s Degree in Information Technology, numerous years of hands-on experience creating and implementing software applications, and the ability to troubleshoot and solve problems in a timely and accurate manner, I confidently express my interest in your posting for an experienced Backend Java Developer. I have been involved in numerous software releases and understand the importance of time management and open communication. While it may be easy to focus on the technical side of work, I’ve that being able to express concerns, roadblocks, and alternative solutions to colleagues of varying technical backgrounds has been invaluable in my professional development. Over the course of my carrier as a software engineer I have: Led to many services releases in my current company. Increase team efficiency by taking them in confidence. Main tech stack that I have worked on is Spring Boot, JPA, Hibernate, JSF, MySQL, Rabbit MQ, Spring Cloud.

Updated on June 04, 2022

Comments

  • Ali Naqvi
    Ali Naqvi almost 2 years

    I want to use nodejs to access hardware information, like processor ID, HDD Serial, Active LAN card's MAC address and some other information. By using a windows specific command I can get ProcessorID and HDD serial number. But this system will be running on different OSes so I need cross platform solutions to getting this info.

    How can I get this info for all platforms?