Skip to content

Simple cross-platform Node.js module that provides power off and restart functionality.

License

Notifications You must be signed in to change notification settings

simonnilsson/power-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

power-control

Simple cross-platform Node.js module that provides power off and restart functionality.

Features

  • Lightweight
  • No dependencies
  • Cross-platform: Linux, macOS, Windows and FreeBSD

Install

npm install --save power-control

Usage

Note: Your application needs to be run with appropriate permissions for the commands to be successful.

var powerControl = require('power-control');

// Power off system
powerControl.powerOff();

// Restart system
powerControl.restart();

License

MIT

About

Simple cross-platform Node.js module that provides power off and restart functionality.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published