0.2.0 • Published 1 year ago

studio-display-control v0.2.0

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

studio-display-control

Set the brightness of an Apple Studio Display in Node.js.

Why?

So that I can control the brightness in Windows.

Installation

npm install studio-display-control

Usage

import { getDisplays } from 'studio-display-control';

for (const display of getDisplays()) {
  // Get the current brightness as a percent.
  console.log(await display.getBrightness()); // 100

  // Set the brightness as a percent.
  console.log(await display.setBrightness(50));
  // And it's reflected on the next get.
  console.log(await display.getBrightness()); // 50

  // Access the serial number of the display.
  console.log(await display.getSerialNumber());
}

License

MIT

0.2.0

1 year ago

0.1.1

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago