Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oledid-js/turn-off-display
Turn off the display from node
https://github.com/oledid-js/turn-off-display
api display node nodejs winapi windows-api
Last synced: 16 days ago
JSON representation
Turn off the display from node
- Host: GitHub
- URL: https://github.com/oledid-js/turn-off-display
- Owner: oledid-js
- License: mit
- Created: 2017-02-04T18:48:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-29T09:04:03.000Z (over 4 years ago)
- Last Synced: 2025-01-06T04:07:10.167Z (19 days ago)
- Topics: api, display, node, nodejs, winapi, windows-api
- Language: PowerShell
- Homepage: https://www.npmjs.com/package/turn-off-display
- Size: 8.79 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# turn-off-display [![npm](https://img.shields.io/npm/dt/turn-off-display.svg)](https://www.npmjs.com/package/turn-off-display) [![npm](https://img.shields.io/npm/v/turn-off-display.svg)](https://www.npmjs.com/package/turn-off-display)
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.## How to install
```
npm install --save turn-off-display
```## How to use
```js
var turnOffDisplay = require("turn-off-display");
try {
turnOffDisplay();
}
catch (err) {
// handle error
}
```## Related
* [oledid-js/turn-off-display-cli](https://github.com/oledid-js/turn-off-display-cli) - CLI for this module## License
[MIT](LICENSE)