# desandro-get-style-property

> Quick and dirty CSS property testing

Latest version **1.0.4** (published 2014-10-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install desandro-get-style-property
pnpm add desandro-get-style-property
yarn add desandro-get-style-property
bun add desandro-get-style-property
```

## 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.4 |
| Published | 2014-10-17 |
| First published | 2014-10-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | David DeSandro |
| Maintainers | desandro |
| Keywords | CSS, DOM |

## Links

- npm: https://www.npmjs.com/package/desandro-get-style-property
- Repository: https://github.com/desandro/get-style-property
- Issues: https://github.com/desandro/get-style-property/issues
- npm.io page: https://npm.io/package/desandro-get-style-property

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2014-10-17
- 1.0.3 — 2014-10-17

## README

# getStyleProperty - quick & dirty CSS property testing

[Original by @kangax](https://github.com/kangax/cft/blob/gh-pages/getStyleProperty.js) :heart_eyes: :zap: :star2:. See [perfectionkills.com/feature-testing-css-properties/](http://perfectionkills.com/feature-testing-css-properties/)

``` js
var transformProp = getStyleProperty('transform');
// returns WebkitTransform on Chrome / Safari
// or transform on Firefox, or MozTransform on old firefox

// then you can use it when setting CSS
element.style[ transformProp ] = 'translate( 12px, 34px )';

// or simply check if its supported
var supportsTranforms = !!transformProp;
```

## Install

[Bower](http://bower.io) :bird:: `bower install get-style-property`

npm: `npm install desandro-get-style-property`

[Component](http://github.com/component/component): `component install desandro/get-style-property`

## MIT License

getStyleProperty is released under the [MIT License](http://desandro.mit-license.org/).

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