https://github.com/steelydylan/caniuse-query
https://github.com/steelydylan/caniuse-query
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/steelydylan/caniuse-query
- Owner: steelydylan
- Created: 2016-06-04T00:24:49.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-29T15:11:35.000Z (almost 10 years ago)
- Last Synced: 2025-10-10T08:16:57.922Z (8 months ago)
- Language: JavaScript
- Homepage: http://www.caniuse-bot.com/
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#caniuse-query
Get browser support info from caniuse data used by [http://www.caniuse-bot.com/](http://www.caniuse-bot.com/)
##Features
```js
var caniuse = require("caniuse-query");
caniuse.find("layout");
//will return ["css-table","multicolumn","flexbox","css-grid"]
caniuse.getSupport("css-grid");
/*
will return
{ and_chr: { p: 50 },
and_uc: { n: 9.9 },
android: { n: 4.1, p: 50 },
chrome: { n: 24, p: 54, d: 54, '#1': 54 },
edge: { a: 14, x: 14, '#2': 14 },
firefox: { n: 18, p: 49, d: 49, '#3': 49 },
ie: { n: 8, p: 9, a: 11, x: 11, '#2': 11 },
ie_mob: { a: 11, x: 11, '#2': 11 },
ios_saf: { p: 9.3, n: 5 },
op_mini: { n: 5 },
opera: { n: 27, p: 39, d: 39, '#1': 39 },
safari: { n: 5.1, p: 9.1 } }
*/
```
##Download
```
npm install caniuse-query
```