Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

get-client-window-width

funtal65MIT1.0.0TypeScript support: included

A safe way of returning the interior width of the window in pixels

ts, lib, ssr, funtal, ssr safe, function, playerony, typescript, Typescript, window.innerWidth, getClientWindowWidth, server-side-rendering, get client window width, get-client-window-width, document.body.clientWidth, ssr safe window.innerWidth, document.documentElement.clientWidth

readme

Welcome to get-client-window-width 👋

A safe way of returning the interior width of the window in pixels

alt Version alt License: MIT alt Twitter: twitter.com/WojtasinskiPawe

Documentation

Usage

Install

npm i get-client-window-width

or

yarn add get-client-window-width

Simple function example

simple-function-example

Authors

👤 Paweł Wojtasiński

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if this project helped you!

PixelShiba