# fela-plugin-pseudo-prefixer

> Fela plugin to add prefixes to pseudo elements and classes

Latest version **12.2.1** (published 2022-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install fela-plugin-pseudo-prefixer
pnpm add fela-plugin-pseudo-prefixer
yarn add fela-plugin-pseudo-prefixer
bun add fela-plugin-pseudo-prefixer
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 12.2.1 |
| Published | 2022-11-16 |
| First published | 2020-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Robin Weser |
| Maintainers | rofrischmann |
| Keywords | fela, fela-plugin, vendor prefixing, prefixer, autoprefixer, cssinjs |

## Links

- npm: https://www.npmjs.com/package/fela-plugin-pseudo-prefixer
- Repository: https://github.com/robinweser/fela
- Homepage: https://github.com/robinweser/fela#readme
- Issues: https://github.com/robinweser/fela/issues
- npm.io page: https://npm.io/package/fela-plugin-pseudo-prefixer

## Dependencies (2)

- [fast-loops](https://npm.io/package/fast-loops.md) ^1.0.0
- [fela-plugin-custom-property](https://npm.io/package/fela-plugin-custom-property.md) ^12.2.1

## Recent versions

- 12.2.1 (latest) — 2022-11-16
- 12.0.0-rc.3.0 (next) — 2022-02-22
- 12.2.0 — 2022-07-06
- 12.1.2 — 2022-05-04
- 12.1.1 — 2022-04-07
- 12.1.0 — 2022-04-06
- 12.0.2 — 2022-02-23
- 12.0.1 — 2022-02-23
- 12.0.0 — 2022-02-23
- 12.0.0-y.0 — 2022-02-22
- 12.0.0-rc.2 — 2022-02-21
- 12.0.0-rc.1 — 2022-02-18
- 12.0.0-rc.0 — 2022-02-16
- 11.7.0 — 2021-09-24
- 11.6.1 — 2021-03-25
- … 6 more at https://npm.io/package/fela-plugin-pseudo-prefixer/versions

## README

# fela-plugin-pseudo-prefixer

<img alt="npm version" src="https://badge.fury.io/js/fela-plugin-pseudo-prefixer.svg"> <img alt="npm downloads" src="https://img.shields.io/npm/dm/fela-plugin-pseudo-prefixer.svg"> <a href="https://bundlephobia.com/result?p=fela-plugin-pseudo-prefixer@latest"><img alt="Bundlephobia" src="https://img.shields.io/bundlephobia/minzip/fela-plugin-pseudo-prefixer.svg"></a>

Adds prefixes to pseudo elements and classes.

## Installation

```sh
yarn add fela-plugin-pseudo-prefixer
```

You may alternatively use `npm i --save fela-plugin-pseudo-prefixer`.

## Usage

Make sure to read the documentation on [how to use plugins](https://fela.js.org/docs/latest/advanced/plugins#using-plugins).

```javascript
import { createRenderer } from 'fela'
import pseudoPrefixer from 'fela-plugin-pseudo-prefixer'

const renderer = createRenderer({
  plugins: [ pseudoPrefixer(':fullscreen', [
    ':-webkit-full-screen',
    ':-moz-full-screen',
    ':-ms-fullscreen',
    ':full-screen',
    ':fullscreen',
  ])
})
```

## Example

#### Input

```javascript
{
  color: 'red',
  ':fullscreen': {
    color: 'green'
  }
}
```

#### Output

```javascript
{
  color: 'red',
  ':-webkit-full-screen': {
    color: 'green',
  },
  ':-moz-full-screen': {
    color: 'green',
  },
  ':-ms-fullscreen': {
    color: 'green',
  },
  ':full-screen': {
    color: 'green',
  },
  ':fullscreen': {
    color: 'green',
  },
}
```

## License

Fela is licensed under the [MIT License](http://opensource.org/licenses/MIT).<br>
Documentation is licensed under [Creative Common License](http://creativecommons.org/licenses/by/4.0/).<br>
Created with ♥ by [@robinweser](http://weser.io) and all the great contributors.

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