Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 483 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 483 Bytes

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) {
   if(!err) {
      console.log(data.computedValue, data.rawValue);
   }
});

License

ambient-light-sensor is released under the MIT license. See LICENSE for details.