Socket
Socket
Sign inDemoInstall

json2mq

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

json2mq

Generate media query string from JSON or javascript object


Version published
Weekly downloads
2.4M
increased by3.11%
Maintainers
1
Weekly downloads
 
Created

What is json2mq?

The json2mq npm package is a utility for converting JSON objects into media query strings. This can be particularly useful when working with responsive design in JavaScript, where you might need to generate media queries dynamically based on certain conditions or configurations.

What are json2mq's main functionalities?

Convert JSON to media query string

This feature allows you to pass a JSON object representing the media query parameters and outputs a media query string. For example, the JSON object `{screen: true, minWidth: 100, maxWidth: 300}` would be converted to the string `'screen and (min-width: 100px) and (max-width: 300px)'`.

json2mq({screen: true, minWidth: 100, maxWidth: 300})

Other packages similar to json2mq

FAQs

Package last updated on 15 Jan 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc