Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Access th Mac ambient light sensor from node

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages