native-screen-js

所属分类:Node.js
开发工具:C
文件大小:0KB
下载次数:0
上传日期:2024-01-17 20:35:20
上 传 者sh-1993
说明:  构建引人注目的NodeJS应用程序,以本机方式与多监视器支持集成。
(Build compelling NodeJS applications that integrate natively with multi-monitor support.)

文件列表:
native/
binding.gyp
index.js
package.json
test.js

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+ (New* Main display only)
## 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 } ] } ```

近期下载者

相关文件


收藏者