Nyalab / caniuse-api

request the caniuse data to check browsers compatibilities
MIT License
356 stars 27 forks source link

find a better api #12

Closed Nyalab closed 9 years ago

Nyalab commented 9 years ago
import * as caniuse from 'caniuse-api'
caniuse.isSupported(feature, browsers)
caniuse.getSupport(feature)
caniuse.find(query)
caniuse.currentBrowsers()
MoOx commented 9 years ago

:+1:

bloodyowl commented 9 years ago
caniuse.isFeatureSupported(featureName, browserScope)
caniuse.getFeatureSupport(featureName)
caniuse.findFeatureName(query)
caniuse.getCurrentBrowserScope()
MoOx commented 9 years ago

it's more getCurrentStableBrowsers()

MoOx commented 9 years ago
caniuse.isFeatureSupported(feature, browsers)
caniuse.getFeatureSupport(feature)
caniuse.findFeatures(query)
caniuse.getCurrentStableBrowsers()
MoOx commented 9 years ago

btw, getCurrentStableBrowsers -> getLatestStableBrowsers()