# @aneves/js-closest

> Method to return closest matching element.

Latest version **1.0.2** (published 2018-07-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @aneves/js-closest
pnpm add @aneves/js-closest
yarn add @aneves/js-closest
bun add @aneves/js-closest
```

## 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 | 2018-07-23 |
| First published | 2016-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alexandre Neves |
| Maintainers | aneves |
| Keywords | javascript, vanilla, closest |

## Links

- npm: https://www.npmjs.com/package/@aneves/js-closest
- Repository: https://github.com/alexandreneves/js-closest
- Issues: https://github.com/alexandreneves/js-closest/issues
- npm.io page: https://npm.io/package/@aneves/js-closest

## Recent versions

- 1.0.2 (latest) — 2018-07-23
- 1.0.0 — 2018-07-23
- 0.1.3 — 2016-11-10
- 0.1.2 — 2016-11-10
- 0.1.1 — 2016-06-03
- 0.1.0 — 2016-05-31

## README

# JS-CLOSEST

Method to return closest (parent) matching element.

## INSTALLATION

```sh
$ npm install --save @aneves/js-closest
```

## USAGE

```javascript
import Closest from '@aneves/js-closest';

Closest(el, '#id');
```

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