kc-screen-data

1.0.3 • Public • Published

Screen Data

[browser] Obtain screen data.

Install

npm install kc-screen-data

Data

  • Screen: Whole screen data

    • aspect: Aspect ratio (E.g: 16:9)
    • density: Pixel density (E.g: 2)
    • width: Screen width (E.g: 1366)
    • height: Screen height (E.g: 768)
    • orientation: "landscape" or "portrait"
    • resolution: width and height string (E.g: 1366x768)
  • Viewport: Browser's viewport data

    • aspect: Aspect ratio (E.g: 16:9)
    • density: Pixel density (E.g: 2)
    • width: Viewport width (E.g: 1366)
    • height: Viewport height (E.g: 768)
    • orientation: "landscape" or "portrait"
    • resolution: width and height string (E.g: 1366x768)

Use

var sc = screen-data();
console.log(sc);

Readme

Keywords

Package Sidebar

Install

npm i kc-screen-data

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

3.89 kB

Total Files

4

Last publish

Collaborators

  • kaisarcode