Answer the question
In order to leave comments, you need to log in
Is it possible to write a program through node js that can access the insides of a computer?
Is it possible through node js to implement a program that can, for example, access the processor or power supply and get their current or average daily power consumption? Or, for example, access the GPU and extract its characteristics?
If, say, a node is not capable of this, then what languages allow it?
Answer the question
In order to leave comments, you need to log in
In a nutshell, you can. The node itself does not have a built-in API for this, but you can use third-party packages that implement this. They work according to one of two strategies:
- they use native addons (the node has a mechanism for integrating binary modules), for this you can use C ++; (thus everything that can be done in C++ can be wrapped in a module and it will be available in node.js)
- use existing command line utilities in different OS and parse their output. With all the disadvantages of this approach, there is a significant advantage - there is no need to compile modules during installation or download binaries blindly. And on windows it can be quite non-trivial to compile binary dependencies.
One of the packages https://www.npmjs.com/package/systeminformation
Search npm, it might have everything you need out of the box.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question