Skip to content

NodeJS module/CLI for turning off Windows monitors

License

Notifications You must be signed in to change notification settings

Sleavely/win-screenoff

Repository files navigation

win-screenoff Build Status

NodeJS module/CLI for putting your Windows 10 monitor to sleep through PowerShell

Github | NPM | Travis

Install

$ npm i -g win-screenoff

Usage

Through CLI:

$ screenoff

As a module:

const screenoff = require('win-screenoff')

const main = async () => {
  await screenoff()
}
main()

License

MIT © Joakim Hedlund