native-screen-js

1.0.4 • Public • Published

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

  • Goal 1: Develop cross platform display api to query multiple physical displays
  • Goal 2: Detect which display currently has focus
  • Goal 3: Screen capture support for active display

Supported Platforms

  • Mac OSX 10.5+
  • Windows 2000 or later
  • Linux 2.7+ (Coming Soon)

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
    }
  ]
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.41latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.41
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i native-screen-js

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

16.4 kB

Total Files

11

Last publish

Collaborators

  • gregpeters00