horizontal

A package that analyze and gives information about browser width such as screen type (XS, SM, MD, LG)
Installation
To install horizontal with npm:
npm install horizontal --save
To install horizontal with yarn:
yarn add horizontal
Usage
import { Horizontal, ScreenType } from 'horizontal'
if(Horizontal.getType() == ScreenType.MD) {
}
const data = Horizontal.getData();
console.log(data.width);
Contributing
We'd love to have your helping hand on horizontal! See CONTRIBUTING.md for more information on what we're looking for and how to get started.
License
This project is licensed under the terms of the MIT license.