# @f/prefix-style

> Prefix style objects based on browser version

Latest version **1.0.2** (published 2016-09-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @f/prefix-style
pnpm add @f/prefix-style
yarn add @f/prefix-style
bun add @f/prefix-style
```

## 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.2 |
| Published | 2016-09-02 |
| First published | 2016-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | f |

## Links

- npm: https://www.npmjs.com/package/@f/prefix-style
- Repository: https://github.com/micro-js/prefix-style
- Homepage: https://github.com/micro-js/prefix-style#readme
- Issues: https://github.com/micro-js/prefix-style/issues
- npm.io page: https://npm.io/package/@f/prefix-style

## Dependencies (2)

- [@f/css-prefix-data](https://npm.io/package/@f/css-prefix-data.md) ^1.0.0
- [@f/css-vendor-prefixes](https://npm.io/package/@f/css-vendor-prefixes.md) ^1.0.2

## Recent versions

- 1.0.2 (latest) — 2016-09-02
- 1.0.1 — 2016-09-02
- 1.0.0 — 2016-09-02

## README

# prefix-style

[![Build status][travis-image]][travis-url]
[![Git tag][git-image]][git-url]
[![NPM version][npm-image]][npm-url]
[![Code style][standard-image]][standard-url]

Prefix style objects based on browser version

## Installation

    $ npm install @f/prefix-style

## Usage

```js
var prefixStyle = require('@f/prefix-style')

var prefixer = prefixStyle('chrome', 34)

prefixStyle({transform: 'scale(2, 0.5)'}) // -> {
                                          //      transform: 'scale(2, 0.5)',
                                          //      webkitTransform:
                                          //    }
```

## API

### prefixStyle(browser, version)

- `browser` - Name of the browser
- `version` - Version number of the browser you want to prefix for

**Returns:** A partially applied function that accepts a style object: `prefix(style) -> style` and returns the same object, modified to have the proper prefixes set for the browser specified by `browser` and `version`.

## License

MIT

[travis-image]: https://img.shields.io/travis/micro-js/prefix-style.svg?style=flat-square
[travis-url]: https://travis-ci.org/micro-js/prefix-style
[git-image]: https://img.shields.io/github/tag/micro-js/prefix-style.svg?style=flat-square
[git-url]: https://github.com/micro-js/prefix-style
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[standard-url]: https://github.com/feross/standard
[npm-image]: https://img.shields.io/npm/v/@f/prefix-style.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@f/prefix-style

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