# qsa

> Lightweight .queryselectorAll() shortcut which array coercion

Latest version **1.0.2** (published 2015-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install qsa
pnpm add qsa
yarn add qsa
bun add qsa
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-11-11 |
| First published | 2015-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Jared Anderson |
| Maintainers | tuxsudo |
| Keywords | dom, querySelectorAll, selectors, es6 |

## Links

- npm: https://www.npmjs.com/package/qsa
- Repository: https://github.com/tuxsudo/qsa
- Homepage: https://github.com/tuxsudo/qsa#readme
- Issues: https://github.com/tuxsudo/qsa/issues
- npm.io page: https://npm.io/package/qsa

## 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

- 1.0.2 (latest) — 2015-11-11
- 1.0.1 — 2015-10-14
- 1.0.0 — 2015-10-14

## README

# Query Selector All Helper

Lightweight .queryselectorAll() shortcut which array coercion.

Install:

	npm install qsa

Then use:
```
import qsa from 'qsa';

qsa('p')
	.map(doStuffWithEachParagraph);
```


## Usage (Default)

Default is to select from the document. So,

	qsa('p')

is synonymous with

	[].slice.call( document.querySelectorAll('p') );


## Usage (Element Specific)

You can specify the element to search within via:

	qsa('p', document.querySelector('div'));

which is synonymous with

	[].slice.call( (document.querySelector('div')||document).querySelectorAll('p') );

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