Skip to content

Node module for changing screen brightness on laptops and other portable devices

License

Notifications You must be signed in to change notification settings

Jabbath/node-brightness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-brightness

A node module for changing screen brightness on laptops and other portable devices. This module currently only works on Linux and Windows. Keep in mind that this does change your current power plan for both AC and battery power modes, so use at your own risk.

Using the CLI tool

When installed globally with

npm install -g node-brightness

you can use a superuser terminal and run:

brightness 50

to set the screen brightness to 50%, for instance.

Usage in javascript code

var changeBrightness = require(node-brightness);
changeBrightness(brightness[,callback]);

Where brightness is a percentage between 0 and 100

Contributing

If you have something to add, try and follow the code style as closely as possible.

License

Licensed under the MIT license. See license.txt.

About

Node module for changing screen brightness on laptops and other portable devices

Resources

License

Stars

Watchers

Forks

Packages

No packages published