# detectcss

> Simple module to detect browser CSS feature support

Latest version **1.0.2** (published 2013-12-06) · 0 weekly downloads

## Install

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

## 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 | 2013-12-06 |
| First published | 2013-12-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.x |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Yaw Joseph Etse |
| Maintainers | yawetse |
| Keywords | CSS, feature detect, browser, modernizr, browserify |

## Links

- npm: https://www.npmjs.com/package/detectcss
- Repository: git@github.com:yawetse/detectCSS
- Issues: https://github.com/yawetse/detectCSS/issues
- npm.io page: https://npm.io/package/detectcss

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2013-12-06
- 1.0.1 — 2013-12-06
- 1.0.0 — 2013-12-06

## README

# detectCSS

Simple module to detect browser CSS feature support, it's a simple alternative to modernizr to quickly test browser support for CSS properties.

## Install
    $ npm install detectcss
    
## Usage
detectCSS is intented to use in a CommonJS module environment, check out [Browserify](http://browserify.org/ "Browserify")

    var detectcss = require('detectcss');
    
    //detect if browser supports CSS transforms
    detectcss.feature("transform"); //returns true if browser supports CSS transforms
    
    //return CSS style with browser prefix
    detectcss.prefixed("transform"); //returns browser prefixed support, example: msTransition
    
### Thanks
http://stackoverflow.com/questions/7264899/detect-css-transitions-using-javascript-and-without-modernizr

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