small-medium-large-xlarge
given a set of screen widths and a screen width value, this will tell you if your screen is small, medium, large or extra large.
Install
npm install small-medium-large-xlarge
Usage
const breakpoints = small: 420 medium: 768 large: 1024 const screenSize = // 'small'const screenSize = // 'medium'const screenSize = // 'large'const screenSize = // 'xlarge'
Contributing
Contributions welcome! Please read the contributing guidelines first.