0.0.4 • Published 7 years ago

screen-management v0.0.4

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

screen-management

An npm module to turn the computer screen off and on again.

It works on the following platforms:

  • Windows (tested on Windows 10)
  • Linux (tested on Ubuntu and Raspbian)

Install the module

Import it into your project with the following command:

npm install screen-management

Or if you prefer yarn to npm install:

yarn add screen-management

How to use it

You can use this module within your code like this.

const screen = require('screen-management');

// Call this function to turn the computer screen to sleep
screen.turnOff(); 

// Call this function to turn on the screen (in case it was in sleep mode)
screen.turnOn(); 

Dependencies

No dependencies are required. The module runs native windows executables compiled using the following C# projects:

Credits

Developed by F. Javier R. Donado for netvico GmbH