Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jss-plugin-vendor-prefixer

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-plugin-vendor-prefixer

JSS plugin that handles vendor prefixes in the browser

  • 10.10.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.5M
decreased by-14.11%
Maintainers
1
Weekly downloads
 
Created

What is jss-plugin-vendor-prefixer?

The jss-plugin-vendor-prefixer is a plugin for JSS (JavaScript Style Sheets) that automatically adds vendor prefixes to CSS properties, ensuring compatibility across different browsers.

What are jss-plugin-vendor-prefixer's main functionalities?

Automatic Vendor Prefixing

This feature automatically adds vendor prefixes to CSS properties. In the example, the 'display' and 'userSelect' properties will be prefixed as needed for different browsers.

const jss = require('jss').default;
const preset = require('jss-preset-default').default;
const vendorPrefixer = require('jss-plugin-vendor-prefixer').default;

jss.setup(preset());
jss.use(vendorPrefixer());

const styles = {
  button: {
    display: 'flex',
    userSelect: 'none'
  }
};

const { classes } = jss.createStyleSheet(styles).attach();
console.log(classes.button);

Other packages similar to jss-plugin-vendor-prefixer

Keywords

FAQs

Package last updated on 09 Feb 2023

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc