node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »

lightlevel

LightLevel

Description

A NodeJS module for use on OSX systems to get the light level from the ambiant light sensor. The higher the number, the brighter the light.

Useage

var LightLevel = require('lightlevel');
var stream = LightLevel.returnStream();
// do something with the stream... 
 
// When you are done with the data... kill the stream... 
LightLevel.stopStream();