power-control

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i power-control

Weekly Downloads

12

Version

1.0.0

License

MIT

Last publish

Collaborators

  • simonnilsson