{"name":"caniuse-api","version":"1.1.0","description":"request the caniuse data to check browsers compatibilities","main":"dist/index.js","files":["dist/","LICENSE"],"dependencies":{"browserslist":"^0.2.0","caniuse-db":"^1.0.30000030","lodash.memoize":"^2.4.1","lodash.uniq":"^2.4.1"},"devDependencies":{"6to5":"^1.14.17","jshint":"^2.5.10","tap-spec":"^2.1.1","tape":"^3.0.3"},"scripts":{"build":"6to5 src --out-dir dist","lint":"jshint src","prepublish":"npm run build","test":"npm run lint && 6to5-node test/*.js | tap-spec"},"repository":{"type":"git","url":"https://github.com/nyalab/caniuse-api"},"keywords":["caniuse","browserslist"],"author":{"name":"nyalab"},"license":"MIT","gitHead":"ffe01ce58737c598977da3f676af267525472b37","bugs":{"url":"https://github.com/nyalab/caniuse-api/issues"},"homepage":"https://github.com/nyalab/caniuse-api","_id":"caniuse-api@1.1.0","_shasum":"2969d343a6871d950b28d341f15a750227e2210b","_from":".","_npmVersion":"2.1.17","_nodeVersion":"0.10.35","_npmUser":{"name":"nyalab","email":"sebastien.balayn@gmail.com"},"maintainers":[{"name":"nyalab","email":"sebastien.balayn@gmail.com"}],"dist":{"shasum":"2969d343a6871d950b28d341f15a750227e2210b","tarball":"http://registry-npm.ywwl.com/caniuse-api/download/caniuse-api-1.1.0.tgz","integrity":"sha512-lGF6nYHr3vXI4eHR1LY0f2Yf4PI0eZMYynUujqWPsdbau13YLR2hmOKOgrY62DwaGD8Z+tw3q6V1ic2wocxfMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCV+o/oSBjppsZEC5tRIzYnbDzNmTbsJH45poQsn/rvLQIgK4u3DTfHb+MGBRmvU/RN2l1W3qkHLyM5bdvIt0yX3Xc="}],"size":3284,"noattachment":false,"key":"/caniuse-api/-/caniuse-api-1.1.0.tgz"},"directories":{},"readme":"# caniuse-api [![Build Status](https://travis-ci.org/Nyalab/caniuse-api.svg?branch=master)](https://travis-ci.org/Nyalab/caniuse-api) [![Build status](https://ci.appveyor.com/api/projects/status/6j3na522bv3bxfa5/branch/master?svg=true)](https://ci.appveyor.com/project/MoOx/caniuse-api/branch/master)\n\nrequest the caniuse data to check browsers compatibilities\n\n## Installation\n\n```console\n$ yarn add caniuse-api\n```\n\n## Usage\n\n```js\nconst caniuse = require('caniuse-api')\n\ncaniuse.getSupport('border-radius')\ncaniuse.isSupported('border-radius', 'ie 8, ie 9')\ncaniuse.setBrowserScope('> 5%, last 1 version')\ncaniuse.getSupport('border-radius')\n// ...\n```\n\n## API\n\n#### `caniuse.getSupport(feature)`\n\n_ask since which browsers versions a feature is available_\n\n* `y`: Since which browser version the feature is available\n* `n`: Up to which browser version the feature is unavailable\n* `a`: Up to which browser version the feature is partially supported\n* `x`: Up to which browser version the feature is prefixed\n\n```js\ncaniuse.getSupport('border-radius', true)\n/*\n{ and_chr: { y: 67 },\n  and_ff: { y: 60 },\n  and_qq: { y: 1.2 },\n  and_uc: { y: 11.8 },\n  android: { y: 2.1, x: 2.1 },\n  baidu: { y: 7.12 },\n  chrome: { y: 4, x: 4 },\n  edge: { y: 12 },\n  firefox: { a: 2, x: 3.6, y: 3 },\n  ie: { n: 8, y: 9 },\n  ie_mob: { y: 10 },\n  ios_saf: { y: 3.2, x: 3.2 },\n  op_mini: {},\n  op_mob: { n: 10, y: 11 },\n  opera: { n: 10, y: 10.5 },\n  safari: { y: 3.1, x: 4 },\n  samsung: { y: 4 } }\n*/\n```\n\n#### `caniuse.isSupported(feature, browsers)`\n\n_ask if a feature is supported by some browsers_\n\n```js\ncaniuse.isSupported('border-radius', 'ie 8, ie 9') // false\ncaniuse.isSupported('border-radius', 'ie 9') // true\n```\n\n#### `caniuse.find(query)`\n\n_search for a caniuse feature name_\n\nEx:\n\n```js\ncaniuse.find('radius') // ['border-radius']\ncaniuse.find('nothingness') // []\ncaniuse.find('css3')\n/*\n[ 'css3-attr',\n  'css3-boxsizing',\n  'css3-colors',\n  'css3-cursors-grab',\n  'css3-cursors-newer',\n  'css3-cursors',\n  'css3-tabsize' ]\n*/\n```\n\n#### `caniuse.getLatestStableBrowsers()`\n\n_get the current version for each browser_\n\n```js\ncaniuse.getLatestStableBrowsers()\n/*\n[ 'and_chr 67',\n  'and_ff 60',\n  'and_qq 1.2',\n  'and_uc 11.8',\n  'android 67',\n  'baidu 7.12',\n  'bb 10',\n  'chrome 67',\n  'edge 17',\n  'firefox 61',\n  'ie 11',\n  'ie_mob 11',\n  'ios_saf 11.3-11.4',\n  'op_mini all',\n  'op_mob 46',\n  'opera 53',\n  'safari 11.1',\n  'samsung 7.2' ]\n*/\n```\n\n#### `caniuse.getBrowserScope()`\n\n_returns a list of browsers currently used for the scope of operations_\n\n```js\ncaniuse.getBrowserScope()\n/*\n[ 'and_chr',\n  'and_ff',\n  'and_qq',\n  'and_uc',\n  'android',\n  'baidu',\n  'chrome',\n  'edge',\n  'firefox',\n  'ie',\n  'ie_mob',\n  'ios_saf',\n  'op_mini',\n  'op_mob',\n  'opera',\n  'safari',\n  'samsung' ]\n*/\n```\n\n#### `caniuse.setBrowserScope(browserscope)`\n\n_if you do not like the default browser scope, you can set it globally by using this method_\n\n* browserscope should be a 'autoprefixer' formatted string\n\n```js\ncaniuse.setBrowserScope('> 5%, last 2 versions, Firefox ESR, Opera 12.1')\n```\n\n\n---\n\n## [Changelog](CHANGELOG.md)\n\n## [License](LICENSE)\n","publish_time":1422884156448,"_cnpm_publish_time":1422884156448,"dist-tags":{"latest":"4.0.0"}}