{"name":"queried","version":"1.0.0","description":"Query selector CSS4 +","main":"css4.js","directories":{"test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Deema Ywanov","email":"dfcreative@gmail.com"},"license":"Unlicensed","dependencies":{"dom-lite":"^0.2.0","arr-flatten":"^1.0.0","sliced":"0.0.5","array-unique":"^0.1.1","get-doc":"^1.0.0","matches-selector":"^1.0.0","get-uid":"^1.0.1","parenthesis":"^1.2.3","mutype":"^0.3.9"},"devDependencies":{"require-stub":"^2.2.4","mocha":"^2.1.0"},"_id":"queried@1.0.0","dist":{"shasum":"43ccfb056fa7794da99d27f8f03de93865a9d25f","tarball":"http://registry-npm.ywwl.com/queried/download/queried-1.0.0.tgz","integrity":"sha512-yXz2cM3eTGxUuDs90POr4Hlh7VwsimYkDWL7dcXzJtA3hQawfVSLLHsInDlzMs0Mhrhz6Nu8xDYT3nzco17BXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC7MJ2Wnv/q8UxhqcAif+LOFHfjeeB9d8hmK2754CAs+AiB2qcYrbrdXci9zEJZiPo0GOsLAwiehTBsj/KZQdSU4+A=="}],"size":4113,"noattachment":false,"key":"/queried/-/queried-1.0.0.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":1422437822259,"_cnpm_publish_time":1422437822259,"dist-tags":{"latest":"1.4.5"}}