get-document-size

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

Usage no npm install needed!

<script type="module">
  import getDocumentSize from 'https://cdn.skypack.dev/get-document-size';
</script>

README

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 }