# css-vendor

> CSS vendor prefix detection and property feature testing.

Latest version **2.0.8** (published 2020-04-04) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.8 |
| Published | 2020-04-04 |
| First published | 2014-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 59.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 68 |
| Author | Oleg Slobodskoi |
| Maintainers | aleshaoleg, kof |
| Keywords | css, vendor, feature, test, prefix, cssinjs, jss, css-in-js |

## Links

- npm: https://www.npmjs.com/package/css-vendor
- Repository: https://github.com/cssinjs/css-vendor
- Homepage: https://github.com/cssinjs/css-vendor#readme
- Issues: https://github.com/cssinjs/css-vendor/issues
- npm.io page: https://npm.io/package/css-vendor

## Dependencies (2)

- [is-in-browser](https://npm.io/package/is-in-browser.md) ^1.0.2
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.8.3

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 2.0.8 (latest) — 2020-04-04
- 2.0.7 — 2019-10-03
- 2.0.6 — 2019-08-15
- 2.0.5 — 2019-06-20
- 2.0.4 — 2019-06-15
- 2.0.3 — 2019-06-15
- 2.0.2 — 2019-04-08
- 2.0.1 — 2019-03-21
- 2.0.0 — 2019-02-11
- 1.2.1 — 2019-02-11
- 1.2.0 — 2019-02-10
- 1.1.0 — 2018-07-08
- 1.0.4 — 2018-07-03
- 1.0.3 — 2018-02-15
- 1.0.2 — 2018-01-22
- … 18 more at https://npm.io/package/css-vendor/versions

## README

[![Build Status](https://travis-ci.org/cssinjs/css-vendor.svg?branch=master)](https://travis-ci.org/cssinjs/css-vendor) [![Greenkeeper badge](https://badges.greenkeeper.io/cssinjs/css-vendor.svg)](https://greenkeeper.io/)

## CSS vendor prefix detection and property feature testing.

### Vendor prefixes

```javascript
console.log(cssVendor.prefix.js) // e.g. WebkitTransform

console.log(cssVendor.prefix.css) // e.g. -webkit-transform
```

### Property support feature test

`cssVendor.supportedProperty(prop)`

Test if property is supported, returns false if not. Returns string if supported. May add a vendor prefix if needed.

```javascript
console.log(cssVendor.supportedProperty('animation')) // e.g. -webkit-animation
```

### Value support feature test

`cssVendor.supportedValue(prop, value)`

Test if value is supported, returns false if not. Returns string if supported. May add a vendor prefix if needed.

```javascript
console.log(cssVendor.supportedValue('display', 'flex')) // e.g. -webkit-flex
```

## Run tests

```bash
yarn
yarn test
```

## License

MIT

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