# qsa-min

> A minimal query selector helper library.

Latest version **1.0.2** (published 2020-03-06) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2020-03-06 |
| First published | 2020-03-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | raynos |

## Links

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

## Recent versions

- 1.0.2 (latest) — 2020-03-06
- 1.0.1 — 2020-03-06

## README

# SYNOPSIS
A minimal query selector helper library.

# INSTALL
```bash
npm install qsa-min
```

# API
There are only two methods, `qs` and `qsa`.

`qs` is a short function that assumes document, but can take an optional
additional parameter that will specify scope of the selector's execution.

```js
const qs = (s, p) => (p || document).querySelector(s)
```

`qsa` is the same as above, but uses `.querySelectorAll` and will also
convert the NodeList into an array, providing at least an empty array if
there are no nodes found.

```js
const qsa = (s, p) => [...(p || document).querySelectorAll(s)]
```

```js
module.exports = { qs, qsa }
```

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