{"_id":"json2mq","_rev":"352719","name":"json2mq","description":"Generate media query string from JSON or javascript object","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"akiran","email":""}],"time":{"modified":"2021-07-13T08:04:17.000Z","created":"2014-11-22T11:18:00.677Z","0.2.0":"2015-01-15T06:37:41.006Z","0.1.0":"2014-11-22T11:18:00.677Z"},"users":{"xiechao06":true},"author":{"name":"Kiran Abburi"},"repository":{"type":"git","url":"https://github.com/akiran/json2mq"},"versions":{"0.2.0":{"name":"json2mq","version":"0.2.0","description":"Generate media query string from JSON or javascript object","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"https://github.com/akiran/json2mq"},"author":{"name":"Kiran Abburi"},"license":"MIT","bugs":{"url":"https://github.com/akiran/json2mq/issues"},"homepage":"https://github.com/akiran/json2mq","devDependencies":{"mocha":"^2.0.1","should":"^4.3.0"},"dependencies":{"string-convert":"^0.2.0"},"gitHead":"f7ac824a281a2ea5aeff3f220e8b3b73918822e7","_id":"json2mq@0.2.0","_shasum":"b637bd3ba9eabe122c83e9720483aeb10d2c904a","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.26","_npmUser":{"name":"akiran","email":"kiran.coder0@gmail.com"},"maintainers":[{"name":"akiran","email":""}],"dist":{"shasum":"b637bd3ba9eabe122c83e9720483aeb10d2c904a","size":2622,"noattachment":false,"key":"/json2mq/-/json2mq-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/json2mq/download/json2mq-0.2.0.tgz"},"directories":{},"publish_time":1421303861006,"_cnpm_publish_time":1421303861006,"_hasShrinkwrap":false},"0.1.0":{"name":"json2mq","version":"0.1.0","description":"Generate media query string from JSON or javascript object","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"https://github.com/akiran/json2mq"},"author":{"name":"Kiran Abburi"},"license":"MIT","bugs":{"url":"https://github.com/akiran/json2mq/issues"},"homepage":"https://github.com/akiran/json2mq","devDependencies":{"mocha":"^2.0.1","should":"^4.3.0"},"dependencies":{"string-convert":"^0.2.0"},"gitHead":"22aa655bbdd96f33d99ac8351d02d83cf8f55e6d","_id":"json2mq@0.1.0","_shasum":"820f49a7cdf88bcada5d12393b82aab27d80543a","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.26","_npmUser":{"name":"akiran","email":"kiran.coder0@gmail.com"},"maintainers":[{"name":"akiran","email":""}],"dist":{"shasum":"820f49a7cdf88bcada5d12393b82aab27d80543a","size":2598,"noattachment":false,"key":"/json2mq/-/json2mq-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/json2mq/download/json2mq-0.1.0.tgz"},"directories":{},"publish_time":1416655080677,"_cnpm_publish_time":1416655080677,"_hasShrinkwrap":false}},"readme":"# json2mq\n\njson2mq is used to generate media query string from JSON or javascript object.\n\n## Install\n    npm install json2mq\n    \n## Usage\n```javascript\nvar json2mq = require('json2mq');\njson2mq({minWidth: 100, maxWidth: 200});\n// -> '(min-width: 100px) and (max-width: 200px)'\n```\n* Media type \n```javascript\njson2mq({screen: true});  // -> 'screen'\n```\n* Media type with negation \n```javascript\njson2mq({handheld: false});  // -> 'not handheld'\n```\n\n* Media features can be specified in camel case\n```javascript\njson2mq({minWidth: 100, maxWidth: 200});\n// -> '(min-width: 100px) and (max-width: 200px)'\n```\n* px is added to numeric dimension values\n```javascript\njson2mq({minWidth: 100, maxWidth: '20em'});\n// -> '(min-width: 100px) and (max-width: 20em)'\n```\n* Multiple media queries can be passed as an array\n```javascript\njson2mq([{screen: true, minWidth: 100}, {handheld: true, orientation: 'landscape'}]); \n// -> 'screen and (min-width: 100px), handheld and (orientation: landscape)'\n```\n\n\n\n## Contributors\n\n* Eric Schoffstall\n\n","_attachments":{},"homepage":"https://github.com/akiran/json2mq","bugs":{"url":"https://github.com/akiran/json2mq/issues"},"license":"MIT"}