styled-prefixer

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i styled-prefixer

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.38 kB

Total Files

4

Last publish

Collaborators

  • garizs