# query-component

> Query the DOM with selector engine fallback support

Latest version **0.0.1** (published 2013-04-15) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2013-04-15 |
| First published | 2013-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | tjholowaychuk |
| Keywords | query, selector, engine, dom, elements |

## Links

- npm: https://www.npmjs.com/package/query-component
- npm.io page: https://npm.io/package/query-component

## 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.1 (latest) — 2013-04-15

## 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/query-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
