ambient-light-sensor
v0.0.1
Published
Access the ambient light sensor on macOS
Downloads
5
Readme
Ambient-Light-Sensor
Access the ambient light sensor on macOS in node.js.
Install
npm install --save ambient-light-sensor
Example
const als = require('ambient-light-sensor');
als(function(err, data) {
console.log(data.computedValue, data.rawValue);
});
License
ambient-light-sensor is released under the MIT license. See LICENSE for details.