osx-brightness

Get or set screen brightness in OS X

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
osx-brightness
2354.0.07 years ago8 years agoMinified + gzip package size for osx-brightness in KB

Readme

osx-brightness
Get or set screen brightness in OS X

Install

$ npm install --save osx-brightness

Usage

const osxBrightness = require('osx-brightness');

osxBrightness.set(0.75).then(() => {
	console.log('Changed brightness to 75%');
});

osxBrightness.get().then(brightness => {
	console.log(brightness);
	//=> 0.4375
});

CLI

See the brightness CLI.

License

MIT © Andreas Gillström