css-selector-browser-h4cks-analyzer
Version:
A test to determine whether a selector is a browser hack
52 lines (37 loc) • 2 kB
Markdown
# css-selector-browser-h4cks-analyzer
[](https://travis-ci.org/bartveneman/css-selector-browser-h4cks-analyzer)
[](https://snyk.io/test/github/bartveneman/css-selector-browser-h4cks-analyzer)


[](https://github.com/sindresorhus/xo)
[](https://www.projectwallace.com/oss)
A list of tests to determine whether a selector is a browser hack, derived from
the formidable [browserhacks.com](https://browserhacks.com)
([Repo](https://github.com/4ae9b8/browserhacks)).
## Installation
```bash
npm install css-selector-browser-h4cks-analyzer
# or
yarn add css-selector-browser-h4cks-analyzer
```
## Usage
```js
const isBrowserHack = require('css-selector-browser-h4cks-analyzer')
console.log(isBrowserHack('* html'))
// => true
console.log(isBrowserHack('.my-selector'))
// => false
```
## Related projects
- [CSS Analyzer](https://github.com/projectwallace/css-analyzer) - CSS
statistics module
- [Wallace CLI](https://github.com/bartveneman/wallace-cli) - CSS statistics in
your CLI
- [CSS Analyzer Diff](https://github.com/bartveneman/css-analyzer-diff) -
Calculates the diff between two sets of CSS analysis
- [Color Sorter](https://github.com/bartveneman/color-sorter) - Sort CSS colors
by hue, saturation, lightness and opacity
- [Gromit CLI](https://github.com/bartveneman/gromit-cli) - A test framework to
assert that CSS statistics don't exceed certain thresholds.
## License
MIT © Bart Veneman