# component-query

> Query the DOM with selector engine fallback support

Latest version **0.0.3** (published 2014-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install component-query
pnpm add component-query
yarn add component-query
bun add component-query
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2014-02-10 |
| First published | 2014-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24 |
| Maintainers | tootallnate |
| Keywords | query, selector, engine, dom, elements |

## Links

- npm: https://www.npmjs.com/package/component-query
- Repository: https://github.com/component/query
- Issues: https://github.com/component/query/issues
- npm.io page: https://npm.io/package/component-query

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2014-02-10

## README

# query

  Query the DOM with selector engine fallback support. This abstraction
  allows all other components that require dom querying to indirectly support
  old browsers, without explicitly adding support for them.

## Installation

    $ component install component/query

## API

### query(selector, [el])

  Query `selector` against the document or `el`
  and return a single match.

```js
query('ul > li');
query('ul > li', articles);
```

### query.all(selector, [el])

  Query `selector` against the document or `el`
  and return all matches.

```js
query.all('ul > li');
query.all('ul > li', articles);
```

## Fallback engines

  Currently supported:

  - [query-zest](https://github.com/component/query-zest)
  - [query-qwery](https://github.com/jamischarles/query-qwery)

## License

  MIT

---
_Source: https://npm.io/package/component-query · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
