/get-document-size

Get the height and width of the (browser) document.

Primary LanguageJavaScriptMIT LicenseMIT

get-document-size

NPM version License

Get the height and width of the (browser) document.

Installation

npm install get-document-size

Usage

var documentSize = require('get-document-size')

console.log(documentSize) // => { height: 989, width: 1024 }