NodeJS module/CLI for putting your Windows 10 monitor to sleep through PowerShell
$ npm i -g win-screenoff
Through CLI:
$ screenoff
As a module:
const screenoff = require('win-screenoff')
const main = async () => {
await screenoff()
}
main()
MIT © Joakim Hedlund