{"maintainers":[{"name":"anonymous","email":"wickynilliams@gmail.com"}],"keywords":["media query","media queries","matchMedia","enquire","enquire.js"],"dist-tags":{"latest":"2.1.6"},"author":{"name":"Nick Williams","url":"http://wicky.nillia.ms"},"description":"Awesome Media Queries in JavaScript","readme":"# [enquire.js](http://wickynilliams.github.com/enquire.js/) - Awesome Media Queries in JavaScript\n\n[![Build Status](https://travis-ci.org/WickyNilliams/enquire.js.svg)](https://travis-ci.org/WickyNilliams/enquire.js)\n\n`enquire.js` is a lightweight, pure javascript library (with **no dependencies**) for programmatically responding to media queries.\n\n## Getting enquire.js\n\n### Download\n\nGet the latest build, ready to go:\n\n * [Development](https://github.com/WickyNilliams/enquire.js/raw/master/dist/enquire.js) - unminified\n * [Production](https://github.com/WickyNilliams/enquire.js/raw/master/dist/enquire.min.js) - minified\n\n### Install via Bower\n\nTo install via bower, enter the following at the command line:\n\n    bower install enquire\n\n### Install via npm\n\nTo install via npm, enter the following at the command line:\n\n    npm install enquire.js\n\n### Build From Source\n\nIf you want build from source (and run all unit tests etc):\n\n    git clone git://github.com/WickyNilliams/enquire.js.git\n    cd enquire.js\n    npm install\n    grunt\n\nBooya!\n\n## Quick Start\n\nThe main method you will be dealing with is `register`. It's basic signature is as follows:\n\n```javascript\nenquire.register(query /* string */, handler /* object || array  || function */);\n```\n\n`query` is the CSS media query you wish to respond to, and `handler` is an object containing any logic to handle the query. An example of usage is as follows:\n\n```javascript\nenquire.register(\"screen and (max-width:1000px)\", {\n\n    match : function() {},      // OPTIONAL\n                                // If supplied, triggered when the media query transitions\n                                // *from an unmatched to a matched state*\n\n    unmatch : function() {},    // OPTIONAL\n                                // If supplied, triggered when the media query transitions\n                                // *from a matched state to an unmatched state*.\n                                // Also may be called when handler is unregistered (if destroy is not available)\n\n    setup : function() {},      // OPTIONAL\n                                // If supplied, triggered once immediately upon registration of the handler\n\n    destroy : function() {},    // OPTIONAL\n                                // If supplied, triggered when handler is unregistered. Place cleanup code here\n\n    deferSetup : true           // OPTIONAL, defaults to false\n                                // If set to true, defers execution the setup function\n                                // until the media query is first matched. still triggered just once\n});\n```\n\nThis should be enough to get you going, but **please read the full [enquire.js documentation](http://wickynilliams.github.com/enquire.js/)** if you wish to learn about the other cool features.\n\n## Contributing\n\n* Got an awesome idea?\n* Found a *not-so*-awesome bug?\n* Wish to get my attention through an inappropriate communication channel?!\n\nThen please don't hesitate to raise an issue, they will *all* be looked at and tended to.\n\nAnd for all the cool cats who are prepared to give their time to contribute code, feel free to open a pull request. If you could write unit tests to accompany your pull request that would be pretty sweet, but no worries if not - if it's good enough to be merged in, it's good enough for me to spend a little time to write tests on your behalf :-)\n\n## License\n\nLicense: MIT (http://www.opensource.org/licenses/mit-license.php)\n\n\n","repository":{"type":"git","url":"git://github.com/WickyNilliams/enquire.js.git"},"users":{"travm":true,"randallagordon":true,"phritolay":true,"webtobesocial":true,"filipve":true,"st3ko":true,"ridermansb":true,"philligan":true,"rochejul":true,"chiefford":true},"bugs":{"url":"https://github.com/WickyNilliams/enquire.js/issues"},"license":"MIT","versions":{"2.1.1":{"name":"enquire.js","version":"2.1.1","main":"./dist/enquire.js","description":"Awesome Media Queries in JavaScript","homepage":"http://wicky.nillia.ms/enquire.js","author":{"name":"Nick Williams","url":"http://wicky.nillia.ms"},"keywords":["media query","media queries","matchMedia","enquire","enquire.js"],"repository":{"type":"git","url":"git://github.com/WickyNilliams/enquire.js.git"},"bugs":{"url":"https://github.com/WickyNilliams/enquire.js/issues"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"scripts":{"test":"grunt test --verbose"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-jasmine":"~0.4.1","grunt-contrib-jshint":"~0.3.0","grunt-contrib-uglify":"~0.2.0","grunt-contrib-watch":"~0.3.1","grunt-rigger":"~0.5.0"},"_id":"enquire.js@2.1.1","dist":{"shasum":"56ba08cb7c896839eda0c00e9fb0d40339e91c3f","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/enquire.js/-/enquire.js-2.1.1.tgz","integrity":"sha512-s/yFKs2Xui737iMBicBAmypdDOfT43ihfAL2ETeeQaAaWOv+7hvbEKSST0mHsCSY3L3VFmXyeuWPcBniPTGOvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGCw0keeKVQloAfZ7Et569h4B3V1G7z0wIUITtnFsxkzAiAN6xXw8r3hqTXGi683ntWwgPu6dOyi+yDeG049HZB2jQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"anonymous","email":"wickynilliams@gmail.com"},"maintainers":[{"name":"anonymous","email":"wickynilliams@gmail.com"}]},"2.1.3":{"name":"enquire.js","version":"2.1.3","main":"./dist/enquire.js","description":"Awesome Media Queries in JavaScript","homepage":"http://wicky.nillia.ms/enquire.js","author":{"name":"Nick Williams","url":"http://wicky.nillia.ms"},"keywords":["media query","media queries","matchMedia","enquire","enquire.js"],"repository":{"type":"git","url":"git://github.com/WickyNilliams/enquire.js.git"},"bugs":{"url":"https://github.com/WickyNilliams/enquire.js/issues"},"license":"MIT","scripts":{"start":"grunt","test":"grunt test","preversion":"npm test","version":"grunt build && git add .","postversion":"git push origin master --tags && npm publish"},"devDependencies":{"grunt":"^1.0.1","grunt-browserify":"^5.0.0","grunt-contrib-jshint":"^1.1.0","grunt-contrib-uglify":"^2.2.0","grunt-contrib-watch":"^1.0.0","grunt-karma":"^2.0.0","jasmine-core":"^2.5.2","jshint-stylish":"^2.2.1","karma":"^1.5.0","karma-browserify":"^5.1.1","karma-jasmine":"^1.1.0","karma-phantomjs-launcher":"^1.0.2"},"gitHead":"c97eaea59cd99fef5e5cad8ce1d0747d418a33b4","_id":"enquire.js@2.1.3","_shasum":"9df484332e625ab4a6372f882de45f1c1935be1d","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.2.1","_npmUser":{"name":"anonymous","email":"wickynilliams@gmail.com"},"maintainers":[{"name":"anonymous","email":"wickynilliams@gmail.com"}],"dist":{"shasum":"9df484332e625ab4a6372f882de45f1c1935be1d","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/enquire.js/-/enquire.js-2.1.3.tgz","integrity":"sha512-FA/y+BNP8zFPoMVzAemQOpiS3Zk6Yfur8K/T5XYoz3eHi3J6zO58hpB+WrdAGx/SAde9if6kRW+ESt06hOeKMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDd99pOsikvVSn/rZO0eoXsZBxmC0IdMrJENCZOSM6EPAIgXIaLzKJBKkxBd6rqOUzcfmuYUKHi/Wk7gZwQACfNn1Q="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/enquire.js-2.1.3.tgz_1488996076383_0.592726580100134"},"deprecated":"issues with entry point"},"2.1.4":{"name":"enquire.js","version":"2.1.4","main":"./dist/enquire.js","description":"Awesome Media Queries in JavaScript","homepage":"http://wicky.nillia.ms/enquire.js","author":{"name":"Nick Williams","url":"http://wicky.nillia.ms"},"keywords":["media query","media queries","matchMedia","enquire","enquire.js"],"repository":{"type":"git","url":"git://github.com/WickyNilliams/enquire.js.git"},"bugs":{"url":"https://github.com/WickyNilliams/enquire.js/issues"},"license":"MIT","scripts":{"start":"grunt","test":"grunt test","preversion":"npm test","version":"grunt build && git add .","postversion":"git push origin master --tags && npm publish"},"devDependencies":{"grunt":"^1.0.1","grunt-browserify":"^5.0.0","grunt-contrib-jshint":"^1.1.0","grunt-contrib-uglify":"^2.2.0","grunt-contrib-watch":"^1.0.0","grunt-karma":"^2.0.0","jasmine-core":"^2.5.2","jshint-stylish":"^2.2.1","karma":"^1.5.0","karma-browserify":"^5.1.1","karma-jasmine":"^1.1.0","karma-phantomjs-launcher":"^1.0.2"},"gitHead":"3476562f54ab610bedeb6e0c11685104179e0d0d","_id":"enquire.js@2.1.4","_shasum":"6a65e3806db57e8da050f4be5ed8d1ab20f57958","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.2.1","_npmUser":{"name":"anonymous","email":"wickynilliams@gmail.com"},"maintainers":[{"name":"anonymous","email":"wickynilliams@gmail.com"}],"dist":{"shasum":"6a65e3806db57e8da050f4be5ed8d1ab20f57958","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/enquire.js/-/enquire.js-2.1.4.tgz","integrity":"sha512-l6CttM0mpEuFKvoj0YF+Dc28KD50GItxAqcJJmgxE+mc/94sheOemoWsntGuAk5VBYiJ45PsGfEzxaKvhHB0WA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCg0hYNJvEW1maepEKJ8GMKPkuUX9ftztw04GYwRjOdnwIhAP0NUox8ObNRI/8P3QFOqQWsA5eKoms7jXexwEJl/g6S"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/enquire.js-2.1.4.tgz_1488996382215_0.3012834098190069"},"deprecated":"issues with entry point"},"2.1.5":{"name":"enquire.js","version":"2.1.5","main":"./src","description":"Awesome Media Queries in JavaScript","homepage":"http://wicky.nillia.ms/enquire.js","author":{"name":"Nick Williams","url":"http://wicky.nillia.ms"},"keywords":["media query","media queries","matchMedia","enquire","enquire.js"],"repository":{"type":"git","url":"git://github.com/WickyNilliams/enquire.js.git"},"bugs":{"url":"https://github.com/WickyNilliams/enquire.js/issues"},"license":"MIT","scripts":{"start":"grunt","test":"grunt test","preversion":"npm test","version":"grunt build && git add .","postversion":"git push origin master --tags && npm publish"},"devDependencies":{"grunt":"^1.0.1","grunt-browserify":"^5.0.0","grunt-contrib-jshint":"^1.1.0","grunt-contrib-uglify":"^2.2.0","grunt-contrib-watch":"^1.0.0","grunt-karma":"^2.0.0","jasmine-core":"^2.5.2","jshint-stylish":"^2.2.1","karma":"^1.5.0","karma-browserify":"^5.1.1","karma-jasmine":"^1.1.0","karma-phantomjs-launcher":"^1.0.2"},"gitHead":"0887598a4fed68cc049d5ffe93ecb73df4027d2d","_id":"enquire.js@2.1.5","_shasum":"8135598cbd70dd15eee2d39e1967f2eea06e1e8a","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.2.1","_npmUser":{"name":"anonymous","email":"wickynilliams@gmail.com"},"maintainers":[{"name":"anonymous","email":"wickynilliams@gmail.com"}],"dist":{"shasum":"8135598cbd70dd15eee2d39e1967f2eea06e1e8a","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/enquire.js/-/enquire.js-2.1.5.tgz","integrity":"sha512-Qru/Etps2pdUiM0c2g/MfuINCSYHk+UmfLoCmDuwsAvJd8Q67gIJ+mk/HhwlhkQul0sE/6wgXF4ZTKWK9h4ERQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUtQhqM0SIAij/mD4ZAANEaHzuleM5nTFfJeilYCWj8wIhAIUoA760iMtD0eePRXdvnpVvGG9kxBIpbr2l+j/LN5s5"}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/enquire.js-2.1.5.tgz_1489019094317_0.0063387867994606495"}},"2.1.6":{"name":"enquire.js","version":"2.1.6","main":"./src","description":"Awesome Media Queries in JavaScript","homepage":"http://wicky.nillia.ms/enquire.js","author":{"name":"Nick Williams","url":"http://wicky.nillia.ms"},"keywords":["media query","media queries","matchMedia","enquire","enquire.js"],"repository":{"type":"git","url":"git://github.com/WickyNilliams/enquire.js.git"},"bugs":{"url":"https://github.com/WickyNilliams/enquire.js/issues"},"license":"MIT","scripts":{"start":"grunt","test":"grunt test","preversion":"npm test","version":"grunt build && git add .","postversion":"git push origin master --tags && npm publish"},"devDependencies":{"bundle-collapser":"^1.2.1","grunt":"^1.0.1","grunt-browserify":"^5.0.0","grunt-contrib-jshint":"^1.1.0","grunt-contrib-uglify":"^2.2.0","grunt-contrib-watch":"^1.0.0","grunt-karma":"^2.0.0","jasmine-core":"^2.5.2","jshint-stylish":"^2.2.1","karma":"^1.5.0","karma-browserify":"^5.1.1","karma-jasmine":"^1.1.0","karma-phantomjs-launcher":"^1.0.2"},"files":["src","dist"],"gitHead":"2f339f1e29b2b6676f541e64b770635075af494d","_id":"enquire.js@2.1.6","_shasum":"3e8780c9b8b835084c3f60e166dbc3c2a3c89814","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.2.1","_npmUser":{"name":"anonymous","email":"wickynilliams@gmail.com"},"maintainers":[{"name":"anonymous","email":"wickynilliams@gmail.com"}],"dist":{"shasum":"3e8780c9b8b835084c3f60e166dbc3c2a3c89814","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/enquire.js/-/enquire.js-2.1.6.tgz","integrity":"sha512-/KujNpO+PT63F7Hlpu4h3pE3TokKRHN26JYmQpPyjkRD/N57R7bPDNojMXdi7uveAKjYB7yQnartCxZnFWr0Xw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICdWTRT4PJDVWDTFeUymD/zC2JYR3yvw1s42FEqDzM3WAiBwrZHrs/emiBABGYrolHUvZf4YiPYLLSAYqXQkTvFeUA=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/enquire.js-2.1.6.tgz_1489491896231_0.34977389965206385"}}},"name":"enquire.js","time":{"modified":"2022-06-17T05:52:13.966Z","created":"2014-05-07T19:52:35.010Z","2.1.1":"2014-05-07T19:52:35.011Z","2.1.3":"2017-03-08T18:01:16.977Z","2.1.4":"2017-03-08T18:06:24.404Z","2.1.5":"2017-03-09T00:24:55.013Z","2.1.6":"2017-03-14T11:44:56.816Z"},"readmeFilename":"readme.md","homepage":"http://wicky.nillia.ms/enquire.js"}