Skip to content

A native cross-platform Node.js module for Windows, Linux / X11 and macOS / OSX for retrieving the resolution and position of all connected and active displays / monitors / screens.

License

Notifications You must be signed in to change notification settings

kristian/displays

Repository files navigation

Displays Logo

displays is a native cross-platform Node.js module for Windows, Linux / X11 and macOS / OSX for retrieving the resolution and position of all connected and active displays / monitors / screens.

Usage

See test.js, for an example on how to retrieve all connected displays:

const displays = require("displays")();
console.log("got displays", displays);

This will output:

got displays [
    Display { top: 0, left: 0, width: 1920, height: 1080 },
    Display { top: 0, left: 1920, width: 800, height: 600 }
]

Installation

This is a Node.js module available through the npm registry. Install it using:

$ npm install displays

Before installing, download and install Node.js. Node.js 12 is recommended.

Author

Written by Kristian Kraljić.

Reporting bugs

Please file any issues on Github.

License

This library is licensed under the MIT license.

About

A native cross-platform Node.js module for Windows, Linux / X11 and macOS / OSX for retrieving the resolution and position of all connected and active displays / monitors / screens.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published