# postcss-prefix

> Replace `:host` elements with a prefix of your choosing

Latest version **3.0.0** (published 2020-09-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-prefix
pnpm add postcss-prefix
yarn add postcss-prefix
bun add postcss-prefix
```

## 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 | 3.0.0 |
| Published | 2020-09-19 |
| First published | 2015-11-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hugh Kennedy |
| Maintainers | bret, goto-bus-stop, yoshuawuyts, ahdinosaur, hughsk, jongacnik, zhouhancheng |

## Links

- npm: https://www.npmjs.com/package/postcss-prefix
- Repository: https://github.com/stackcss/postcss-prefix
- Issues: https://github.com/stackcss/postcss-prefix/issues
- npm.io page: https://npm.io/package/postcss-prefix

## Dependencies (1)

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

## Recent versions

- 3.0.0 (latest) — 2020-09-19
- 2.2.0 — 2019-02-05
- 2.1.2 — 2019-02-05
- 2.1.1 — 2017-09-29
- 2.1.0 — 2017-09-26
- 2.0.0 — 2016-11-08
- 1.0.4 — 2016-07-03
- 1.0.3 — 2015-12-24
- 1.0.2 — 2015-12-13
- 1.0.1 — 2015-11-16
- 1.0.0 — 2015-11-01

## README

# postcss-prefix
Replace `:host` elements with a prefix of your choosing

## Usage
```js
const prefix = require('postcss-prefix')
const postcss = require('postcss')

const css = `
  :host { color: blue }
  .hello { color: black }
`

const newCss = postcss([ prefix('#hello-world') ])
  .process(css)
  .toString()

console.log(newCss)
// => #hello-world { color: blue }
// => .hello { color: black }
`
```

## See Also
- [sheetify](https://github.com/stackcss/sheetify)

## License
[MIT](https://tldrlegal.com/license/mit-license)

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