Thing.js is a framework provides the fastest and easiest way to develop applications for open hardware devices.
npm install thing-js
Add a new file
board.json and add the below JSON object.
Check the API documentation to see how to control hardware modules on a dev board.