Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)