1.0.4 • Published 2 years ago

native-screen-js v1.0.4

Weekly downloads
107
License
MIT
Repository
github
Last release
2 years ago

This project is designed to be a cross platform NodeJS display solution that supports multiple displays.

Supported Platforms

Requirements

Install Yarn npm install yarn -g Compile yarn Run Demo node test.js

Usage

const screen = require('native-screen-js');
console.log(screen.getDisplayInfo());

Output

{
  "displayCount": 1,
  "screens": [
    {
      "modelNumber": 43298, <--- OSX Only
      "isBuiltIn": 1,
      "isMainDisplay": 1,
      "width": 1440,
      "height": 900,
      "x": 0,  <--- Top left corner of display in virtual space
      "y": 0,  <--- Top left corner of display in virtual space
      "rotation": 0 <--- OSX Only
    }
  ]
}