New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

styled-prefixer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-prefixer

A utility for applying vendor prefixes to CSS styles in JavaScript and converting them into a string format.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

styled-prefixer

A utility for applying vendor prefixes to CSS styles in JavaScript and converting them into a string format.

Installation

npm install styled-prefixer

Usage

import styledPrefixer from 'styled-prefixer';

const styles = {
  display: 'flex',
  justifyContent: 'center',
  alignItems: 'center'
};

const prefixedStyles = styledPrefixer(styles);
// Use prefixedStyles as inline style or CSS class content

Features

  • Automatically applies necessary vendor prefixes.
  • Converts JavaScript style objects into a string format.
  • Can be used for inline styling or CSS classes.

Contributing

Contributions are welcome. Please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

css

FAQs

Package last updated on 05 Apr 2024

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