Skip to content

gillstrom/osx-brightness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Get or set screen brightness in OS X

Resources

License

Stars

Watchers

Forks

Packages

No packages published