Access the ambient light sensor on macOS in node.js.
npm install --save ambient-light-sensor
const als = require('ambient-light-sensor');
als(function(err, data) {
if(!err) {
console.log(data.computedValue, data.rawValue);
}
});
ambient-light-sensor is released under the MIT license. See LICENSE for details.