Preparing for system design interviews?  Try bugzed.com →

Viewport Dimensions Utility

JSON →
library 0.2.0 ·javascript abandoned
verified Jun 17, 2026

This `viewport-dimensions` utility provides a simple API for retrieving and watching browser viewport dimensions (width, height, vmin, vmax). Unlike `window.innerWidth`, it specifically uses `documentElement.clientWidth` and `documentElement.clientHeight` to report dimensions *excluding* scrollbars, which is a key differentiator. This package is currently at version `0.2.0` and appears to be unmaintained, with its last known activity dating back several years. It primarily targets CommonJS environments and does not natively support modern ES module imports. It offers basic functions like `width()`, `height()`, `min()`, `max()`, and `setDimensions()` to update internal references, making it suitable for simple, browser-based dimension tracking without external dependencies. The low version number and lack of recent updates suggest it is no longer actively developed or maintained.

total hits 6
actors 3 distinct systems
last hit 20d ago AhrefsBot
Script
1
Search engines
1

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇩🇪 Germany