# postcss-wrap-selector

> PostCSS plugin for adding a parent selector to all rules in a css file.

Latest version **1.0.1** (published 2019-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-wrap-selector
pnpm add postcss-wrap-selector
yarn add postcss-wrap-selector
bun add postcss-wrap-selector
```

## 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.1 |
| Published | 2019-10-18 |
| First published | 2019-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | https://kawhi.site |
| Maintainers | kawhi66 |

## Links

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

## Dependencies (1)

- [postcss](https://npm.io/package/postcss.md) 5.2.5

## Recent versions

- 1.0.1 (latest) — 2019-10-18

## README

# postcss-wrap-selector

[PostCSS](https://github.com/postcss/postcss) plugin for adding a parent selector to all rules in a css file.

## Options

There are two interesting configs about this plugins. The `selector` option takes a string value that should be placed at the beginning of each selector, including selector lists separated by commas. The `skipRootSelector` option takes a string or an array, if a selector starts with specified root selector, this selector will be skipped.

```json
{
  "selector": ".parent",
  "skipRootSelector": [".lightblue", ".black"]
}
```

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