Skip to content
Get or set screen brightness in OS X
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig Initial commit May 16, 2015
.gitattributes Add dotfiles and export methods directly May 22, 2015
.gitignore Initial commit May 16, 2015
index.js Use Promises Oct 17, 2015
license Tweaks Jun 15, 2015
main Change to use .c May 22, 2015
package.json 4.0.0 Oct 17, 2015
readme.md Use Promises Oct 17, 2015
test.js Use Promises Oct 17, 2015

readme.md

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

You can’t perform that action at this time.