Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

wing-viewport

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wing-viewport

a utility tool for viewport

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

wing-viewport

viewport utility

Usage

import viewport from 'wing-viewport';

viewport.isMobile();
viewport.isExtraSmallViewPort();
viewport.isMediumViewPort();
viewport.isSmallViewPort();
viewport.isLargeViewPort();
viewport.isExtraLargeViewPort();
viewport.isExtraExtraLargeViewPort();
MethodDescription
isMobile()Check whether it is a mobile browser
isExtraSmallViewPort()clientWidth < 576
isMediumViewPort()clientWidth >= 576
isSmallViewPort()clientWidth >= 768
isLargeViewPort()clientWidth >= 992
isExtraLargeViewPort()clientWidth >= 1200
isExtraExtraLargeViewPort()clientWidth >= 1400

Keywords

viewport

FAQs

Package last updated on 11 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts