# vendor-prefix

> vendor prefix css attributes

Latest version **0.1.0** (published 2014-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install vendor-prefix
pnpm add vendor-prefix
yarn add vendor-prefix
bun add vendor-prefix
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-01-10 |
| First published | 2014-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Paul Panserrieu |
| Maintainers | 42loops |
| Keywords | prefix, desktop, vendor |

## Links

- npm: https://www.npmjs.com/package/vendor-prefix
- Repository: https://github.com/peutetre/vendor-prefix
- Issues: https://github.com/peutetre/vendor-prefix/issues
- npm.io page: https://npm.io/package/vendor-prefix

## Recent versions

- 0.1.0 (latest) — 2014-01-10

## README

# vendor-prefix [![Build Status](https://secure.travis-ci.org/peutetre/vendor-prefix.png)](http://travis-ci.org/peutetre/vendor-prefix) [![Mocha Saucelabs Tests Status](https://saucelabs.com/buildstatus/vendor-prefix)](https://saucelabs.com/u/vendor-prefix)

  add a vendor prefix to a css attribute

This is a fork from https://github.com/jkroso/prefix which is a fork of https://github.com/pgherveou/prefix

## Usage

    $ npm install vendor-prefix

```js
var prefix = require('vendor-prefix');
```

## API

### prefix(key)

  Prefix `key`. This function memoizes its results so you don't need to worry about any performance issues, just treat it like a map.

```js
prefix('transform'); // webkitTransform
prefix('color'); // color
```

Throw an error if the given string is not a css property.

### dash(key)

  create a dasherize version of a vendor prefix

```js
prefix.dash('transform'); // -webkit-transform
prefix.dash('color'); // color
prefix.dash('background-color'); // background-color
```

Throw an error if the given string is not a css property.

## Run the tests

    $ npm install
    $ npm run build

<a href="https://saucelabs.com/u/vendor-prefix">
  <img src="https://saucelabs.com/browser-matrix/vendor-prefix.svg" alt="Selenium Tests Status" />
</a>

open a browser at `test/index.html`

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