Gathering detailed insights and metrics for json2mq
Gathering detailed insights and metrics for json2mq
Gathering detailed insights and metrics for json2mq
Gathering detailed insights and metrics for json2mq
npm install json2mq
Typescript
Module System
Node Version
NPM Version
99.8
Supply Chain
77.2
Quality
74.9
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
525,678,870
Last Day
430,263
Last Week
2,686,578
Last Month
11,775,602
Last Year
123,464,255
MIT License
172 Stars
10 Commits
9 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Feb 17, 2025
Latest Version
0.2.0
Package Id
json2mq@0.2.0
Size
2.56 kB
NPM Version
2.1.3
Node Version
0.10.26
Published on
Jan 15, 2015
Cumulative downloads
Total Downloads
Last Day
-4.9%
430,263
Compared to previous day
Last Week
-3.1%
2,686,578
Compared to previous week
Last Month
3.8%
11,775,602
Compared to previous month
Last Year
18.6%
123,464,255
Compared to previous year
1
json2mq is used to generate media query string from JSON or javascript object.
npm install json2mq
1var json2mq = require('json2mq'); 2json2mq({minWidth: 100, maxWidth: 200}); 3// -> '(min-width: 100px) and (max-width: 200px)'
1json2mq({screen: true}); // -> 'screen'
1json2mq({handheld: false}); // -> 'not handheld'
1json2mq({minWidth: 100, maxWidth: 200}); 2// -> '(min-width: 100px) and (max-width: 200px)'
1json2mq({minWidth: 100, maxWidth: '20em'}); 2// -> '(min-width: 100px) and (max-width: 20em)'
1json2mq([{screen: true, minWidth: 100}, {handheld: true, orientation: 'landscape'}]); 2// -> 'screen and (min-width: 100px), handheld and (orientation: landscape)'
No vulnerabilities found.