{"name":"queried","version":"1.4.1","description":"Query selector CSS4 +","main":"css4.js","directories":{"test":"test","lib":"lib"},"files":["lib","*.js"],"scripts":{"test":"mochify"},"author":{"name":"Deema Ywanov","email":"dfcreative@gmail.com"},"license":"Unlicensed","dependencies":{"arr-flatten":"^1.0.0","sliced":"0.0.5","array-unique":"^0.1.1","get-doc":"^1.0.0","get-uid":"^1.0.1","parenthesis":"^1.2.3","mutype":"^0.3.9","arrayify-compact":"^0.1.0"},"devDependencies":{"dom-lite":"^0.2.0","require-stub":"^2.2.4","mocha":"~2.1.0","mochify":"^2.2.0","assert":"^1.3.0","chai":"^1.10.0"},"repository":{"type":"git","url":"https://github.com/dfcreative/queried"},"bugs":{"url":"https://github.com/dfcreative/queried/issues"},"homepage":"https://github.com/dfcreative/queried","_id":"queried@1.4.1","dist":{"shasum":"23ab026f7b887438659901a62103aa240ba4afd4","tarball":"http://registry-npm.ywwl.com/queried/download/queried-1.4.1.tgz","integrity":"sha512-uKyLIs/0E24Ax4rkblrYPWs4hYUdgvaGFJ0btg8aAaxbHCeNQL1RupXbIdK9dXBSibSM2YzI6HZUTJYdOW/VKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCH1qFN8nubY6slQSwxEgBzd9zrPA0eqsRAVsCgJsnPrkCIEpGDkwJ7H8DzxcUWnPQ4TUpMu/AbihEMNjE1QqGVx19"}],"size":4412,"noattachment":false,"key":"/queried/-/queried-1.4.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"deprecated":"Just use document.querySelector man","readme":"# queried [![Build Status](https://travis-ci.org/dfcreative/queried.svg?branch=master)](https://travis-ci.org/dfcreative/queried) [![Code Climate](https://codeclimate.com/github/dfcreative/queried/badges/gpa.svg)](https://codeclimate.com/github/dfcreative/queried)\r\n\r\n_Queried_ is a convenient wrapper for _querySelector_.\r\n\r\n7. [query](https://github.com/component/query)-compliant API.\r\n\r\n3. Returns `Array` instead of `NodeList` in multiple query: `q.all('.block').forEach(function (el) { ... } )`.\r\n\r\n7. Accepts other elements or array as a selector: `q.all(['.block', self.el]);`.\r\n\r\n1. Polyfills CSS3 & CSS4 pseudos: `:has`, `:scope`, `:root`, `:matches`.\r\n\r\n2. Fixes immediate children selector `> *`: `q.all('> *', element);`.\r\n\r\n7. Normalizes nested :not’s: `:not(a:not(:target))`.\r\n\r\n\r\n## Usage\r\n\r\n[![npm install queried](https://nodei.co/npm/queried.png?mini=true)](https://npmjs.org/package/queried)\r\n\r\n\r\n```js\r\nvar q = require('queried');\r\n\r\n//select each div having `a` with `span` inside as immediate children.\r\nq.all('div:has(a:has(span))');\r\n```\r\n\r\n## API\r\n\r\n| Method | Description |\r\n|---|---|\r\n| _query(selector, el=document)_ | Query a single element by selector |\r\n| _query.all(selector, el=document)_ | Query list of elements by selector |\r\n| _query.document_ | Default document to use. Change it, if you need custom DOM, like `q.document = require('dom-lite').document`. |\r\n\r\n\r\n## Similar\r\n\r\n* [sel](https://github.com/amccollum/sel) — a more complete CSS4 selector, lacks of mapping pseudos and unable to handle nested pseudos like `:not(:has(a))`\r\n* [query-component](http://npmjs.org/package/query-component) - a tiny wrapper over native `querySelector` with fallback to engines like qwery etc.\r\n* [dom-select](https://www.npmjs.com/package/dom-select) === [select-dom](https://www.npmjs.com/package/select-dom)\r\n* [qwery](https://www.npmjs.com/package/qwery)\r\n* [domy-element](https://www.npmjs.com/package/domy-element)\r\n* [jquery](https://www.npmjs.com/package/jquery)","publish_time":1422738008765,"_cnpm_publish_time":1422738008765,"dist-tags":{"latest":"1.4.5"}}