Node.js IoT – Create Local Module for CPU Sensor
We’re back and ready to do some refactoring of our CPU sensor so we can learn about Node.js modules and how to create them. Building small, focused modules is one of the key tenets of the Node.js philosophy as summarized in The Node Way: Building small, single-purpose modules is at the heart of the Node.js philosophy. Borrowing from Unix, Node.js encourages composing the complex and powerful out of smaller, simpler pieces. This idea trickles down from entire applications (using the best tool for the job vs. a full suite) to how the tools themselves are built.