screen-info
A native multiplatform module to query the system OS for displays info.
Usage
Get current screen info & print it to console:
; const mainScreen = Screen;console;
This will output
Current screen size is 1920x1080x24
1920 pixels width,
1080 pixels height,
24 bits per pixels
API
{width:number height: number colorDepth: number}
return the size and color depth of default system display
width:number height: number colorDepth: number
return the size and color depth of all system displays
Install
With npm installed, run
$ npm install screen-info
See Also
License
MIT