# mishamyrt-noquery

> Teenie-weenie jQuery–like $ function for DOM queries

Latest version **3.0.0** (published 2021-08-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install mishamyrt-noquery
pnpm add mishamyrt-noquery
yarn add mishamyrt-noquery
bun add mishamyrt-noquery
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2021-08-11 |
| First published | 2018-11-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mishamyrt |
| Maintainers | mishamyrt |
| Keywords | jquery, vanillajs |

## Links

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

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2021-08-11
- 2.0.0 — 2020-05-14
- 1.0.3 — 2018-11-24
- 1.0.2 — 2018-11-24
- 1.0.1 — 2018-11-21
- 1.0.0 — 2018-11-21

## README

<img src="https://mishamyrt.github.io/noquery/logo.svg" align="right"
     alt="Logo" width="50" height="101">

# noQuery [![Quality assurance](https://github.com/mishamyrt/noquery/actions/workflows/qa.yaml/badge.svg)](https://github.com/mishamyrt/noquery/actions/workflows/qa.yaml)

A function for elements selection in 71 ASCII chars.

```js
import { $ } from 'mishamyrt-noquery'

const title = $('h1')
```

If only one element is found, the function will return it. Otherwise, it will return an array with all [native methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).

```js
const handleClick = () => alert('Whoops')
const isRed = n => n.classList.contains('__red')

// Set click callback to all red buttons
$('.button')
  .filter(isRed)
  .forEach(n => n.addEventListener('click', handleClick))
```

[ci]: https://travis-ci.com/mishamyrt/noquery

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