1.0.4 • Published 2 years ago

get-screen-resolution v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

get-screen-resolution

Get your screen's resolution

Works on

  • Windows
  • MacOS
  • Linux (requires ImageMagick apt-get install imagemagick)

Usage

import { getResolution } from 'get-screen-resolution'

const resolution = await getResolution();
// e.g. { width: 1920, height: 1080 }

API

Resolution

{
  width: number,
  height: number
}

getResolution(): Promise<Resolution>

Resolves to an object containing screen's width and height

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago