Turns off the computer monitor/display/screen.
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.
npm install --save turn-off-display
var turnOffDisplay = require("turn-off-display");
try {
turnOffDisplay();
}
catch (err) {
// handle error
}
If node-gyp fails on Windows: Check out the node-gyp documentation and felixrieseberg/windows-build-tools
- oledid-js/turn-off-display-cli - CLI for this module