# autoprefix

> Adds vendor prefixes to an object of styles through autoprefixer

Latest version **1.0.1** (published 2016-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install autoprefix
pnpm add autoprefix
yarn add autoprefix
bun add autoprefix
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-09-30 |
| First published | 2015-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dariocravero |
| Keywords | auto, prefix, vendor, style, rules, autoprefix-core, react, inline, styles |

## Links

- npm: https://www.npmjs.com/package/autoprefix
- Repository: https://github.com/uxtemple/autoprefix
- Homepage: https://github.com/uxtemple/autoprefix#readme
- Issues: https://github.com/uxtemple/autoprefix/issues
- npm.io page: https://npm.io/package/autoprefix

## Dependencies (3)

- [camelcase](https://npm.io/package/camelcase.md) ^1.1.0
- [decamelize](https://npm.io/package/decamelize.md) ^1.0.0
- [autoprefixer-core](https://npm.io/package/autoprefixer-core.md) ~5.1.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-09-30
- 1.0.0 — 2016-09-30
- 0.1.6 — 2016-09-26
- 0.1.5 — 2016-09-23
- 0.1.4 — 2015-08-03
- 0.1.3 — 2015-08-03
- 0.1.2 — 2015-07-31
- 0.1.1 — 2015-07-31
- 0.1.0 — 2015-07-30

## README

# autoprefix

Adds vendor prefixes to an object of styles through
[autoprefixer](https://github.com/postcss/autoprefixer).

Works best in combination with
[react-autoprefix](https://github.com/UXtemple/babel-plugin-react-autoprefix)
babel plugin to auto prefix your inline styles at compilation time :).

[![Build Status](https://travis-ci.org/UXtemple/autoprefix.svg)](https://travis-ci.org/UXtemple/autoprefix)

## Installation

```sh
$ npm install autoprefix
```

## Usage

```javascript
require('autoprefix')({
  alignItems: 'center',
  background: 'linear-gradient(350.5deg, white, black), linear-gradient(-130deg, black, white), linear-gradient(45deg, black, white)'
});

// =>
//
// {
//   webkitBoxAlign: 'center',
//   webkitAlignItems: 'center',
//   msFlexAlign: 'center',
//   alignItems: 'center',
//   background: ['-webkit-linear-gradient(99.5deg, white, black), -webkit-linear-gradient(220deg, black, white), -webkit-linear-gradient(45deg, black, white)', 'linear-gradient(350.5deg, white, black), linear-gradient(-130deg, black, white), linear-gradient(45deg, black, white)']
// }
```

Initially inspired by [react-css](https://github.com/elierotenberg/react-css).

Locked to a synchronous version of autoprefixer to allow for the babel plugin for react.

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