Socket
Socket
Sign inDemoInstall

fela-plugin-pseudo-prefixer

Package Overview
Dependencies
2
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-plugin-pseudo-prefixer


Version published
Maintainers
1
Install size
122 kB
Created

Readme

Source

fela-plugin-pseudo-prefixer

npm version npm downloads Bundlephobia

Adds prefixes to pseudo elements and classes.

Installation

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.

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
{
  color: 'red',
  ':fullscreen': {
    color: 'green'
  }
}
Output
{
  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.
Documentation is licensed under Creative Common License.
Created with ♥ by @robinweser and all the great contributors.

Keywords

FAQs

Last updated on 16 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc