# postcss-closest

> PostCSS plugin to modify closest matching part of current selector

Latest version **1.0.0** (published 2016-10-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-closest
pnpm add postcss-closest
yarn add postcss-closest
bun add postcss-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.0 |
| Published | 2016-10-05 |
| First published | 2016-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+7 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andrey Avol Volynkin |
| Maintainers | avol |
| Keywords | postcss, css, postcss-plugin, closest, nest-css, css-nbd |

## Links

- npm: https://www.npmjs.com/package/postcss-closest
- Repository: https://github.com/m18ru/postcss-closest
- Homepage: https://github.com/m18ru/postcss-closest#readme
- Issues: https://github.com/m18ru/postcss-closest/issues
- npm.io page: https://npm.io/package/postcss-closest

## Dependencies (2)

- [postcss](https://npm.io/package/postcss.md) ^5.2.4
- [postcss-selector-parser](https://npm.io/package/postcss-selector-parser.md) ^2.2.1

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-10-05

## README

# postcss-closest

[PostCSS] plugin to modify closest matching part of current selector

```css
/* Input example */
html > body p:closest(body with .index, html with .js)
{
	...
}
```

```css
/* Output example */
html.js > body.index p
{
	...
}
```

## Install

```
npm install --save-dev postcss-closest
```

## Usage

```js
postcss( [ require( 'postcss-closest' ) ] )
```

[PostCSS]: https://github.com/postcss/postcss

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