Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.2 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.2 KB

turn-off-display Build Status npm npm

Turns off the computer monitor/display/screen.

Supported operating systems

This package only supports Windows and OS X >= 10.9 for now. If you want to add support for another operating system, please submit a pull-request.

Will install ffi on win32. No dependencies on darwin.

How to install

npm install --save turn-off-display

How to use

var turnOffDisplay = require("turn-off-display");
try {
	turnOffDisplay();
}
catch (err) {
	// handle error
}

Troubleshooting

If node-gyp fails on Windows: Check out the node-gyp documentation and felixrieseberg/windows-build-tools

Related

License

MIT