New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

responsive-debug

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

responsive-debug

The simple utility to debug a responsive layout

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

Responsive Debug

Build Status NPM

The simple utility to debug a responsive layout. It allows:

  • Display current window width
  • Display current root element font size (useful for rem/em)
  • Display current responsive break

Usage

  • Install the package:
> npm install responsive-debug
  • Add debug overlay to your website
import enableDebug from 'responsive-debug';

enableDebug([
    {
        name: 'xlg',
        mediaQuery: 'screen and (min-width: 120em)'
    },
    {
        name: 'lg',
        mediaQuery: 'screen and (min-width: 89em) and (max-width: 119.99em)'
    },
    {
        name: 'md',
        mediaQuery: 'screen and (min-width: 84em) and (max-width: 88.99em)'
    },
    {
        name: 'sm',
        mediaQuery: 'screen and (min-width: 40em) and (max-width: 83.99em)'
    },
    {
        name: 'xs',
        mediaQuery: 'screen and (min-width: 30em) and (max-width: 39.99em)'
    },
    {
        name: 'xxs',
        mediaQuery: 'screen and (max-width: 29.99em)'
    }
]);

enableDebug function acceppts array of objects that contains name and mediaQuery params. They will be used to display current responsive break.

License

The project is released under the MIT License.

Keywords

front-end

FAQs

Package last updated on 23 Oct 2019

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