1.0.3 • Published 1 year ago

screen-control v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Screen Control Module

This module is used to perform actions such as screen rotation, volume control, and power management depending on your operating system. This module works on Windows, macOS, and Linux operating systems.

Installation

Install this module via npm in your project directory:

npm install screen-control

Usage

const ScreenControl = require('screen-control');

// Rotate screen
ScreenControl.rotateScreen(90);

// Volume control
ScreenControl.setVolume(50); // sets volume to 50%
ScreenControl.setMuted(true); // mutes the volume
ScreenControl.getMuted(); // checks mute status

// Power management
ScreenControl.powerOn(); // powers on the screen
ScreenControl.powerOff(); // powers off the screen

Supported Operating Systems

  • Windows
  • macOS
  • Linux

Notes

  • Screen rotation and power management operations on Windows operating system are performed using PowerShell.
  • 'loudness' module is used for volume control.
  • Macos rotateScreen not useable now We will update code when be ready.

Contributing

  • If you'd like to contribute to this project, please contribute to the GitHub repository: GitHub - screen-control
  • Feel free to open an issue for any bugs or suggestions.
1.0.3

1 year ago

1.0.2

1 year ago