Skip to content

Get true window size including while dev tools is in use

License

Notifications You must be signed in to change notification settings

mjmiller41/true-window-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

true-window-size

Get true window size including while dev tools is in use

Report Bug | Request Features


Table of Contents


Installation

npm i true-window-size

Usage

  1. Import:

    import windowSize from 'true-window-size';
  2. Use:

    const winSize = windowSize();
    
    const winHeight = winSize.y;
    const winWidth = winSize.x;

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Project Link: https://github.com/michael-joseph-miller/loading-animations-react

About

Get true window size including while dev tools is in use

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published