UNPKG

motion

Version:

motion - moving development forward

69 lines (68 loc) 6.7 kB
{ "_args": [ [ "browserslist@https://registry.npmjs.org/browserslist/-/browserslist-1.0.1.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "browserslist@>=1.0.1 <1.1.0", "_id": "browserslist@1.0.1", "_inCache": true, "_location": "/browserslist", "_phantomChildren": {}, "_requested": { "name": "browserslist", "raw": "browserslist@https://registry.npmjs.org/browserslist/-/browserslist-1.0.1.tgz", "rawSpec": "https://registry.npmjs.org/browserslist/-/browserslist-1.0.1.tgz", "scope": null, "spec": "https://registry.npmjs.org/browserslist/-/browserslist-1.0.1.tgz", "type": "remote" }, "_requiredBy": [ "/autoprefixer" ], "_resolved": "https://registry.npmjs.org/browserslist/-/browserslist-1.0.1.tgz", "_shasum": "ef0dd708318cdf74325faeea59efec84d9464717", "_shrinkwrap": null, "_spec": "browserslist@https://registry.npmjs.org/browserslist/-/browserslist-1.0.1.tgz", "_where": "/Users/nw/flint/packages/flint", "author": { "email": "andrey@sitnik.ru", "name": "Andrey Sitnik" }, "bin": { "browserslist": "./cli.js" }, "bugs": { "url": "https://github.com/ai/browserslist/issues" }, "dependencies": { "caniuse-db": "^1.0.30000335" }, "description": "Get browsers versions that matches given criterias like in Autoprefixer", "devDependencies": { "chai": "3.3.0", "gulp": "3.9.0", "gulp-eslint": "1.0.0", "gulp-mocha": "2.1.3", "mocha": "2.3.3" }, "homepage": "https://github.com/ai/browserslist#readme", "keywords": [ "browsers", "caniuse" ], "license": "MIT", "name": "browserslist", "optionalDependencies": {}, "readme": "# Browserslist [![Build Status][ci-img]][ci]\n\nGet browser versions that match given criteria.\nUseful for tools like [Autoprefixer].\n\nYou can select browsers by passing a string. This library will use Can I Use\ndata to return the appropriate list of all matching versions.\n\nFor example, the last version of each major browser and versions,\nwith a usage of over 10% in global usage statistics:\n\n```js\nbrowserslist('last 1 version, > 10%');\n//=> ['and_chr 45', 'chrome 45', 'edge 12', 'firefox 41', 'ie 11', 'ie_mob 11',\n// 'ios_saf 9', 'opera 32', 'safari 9']\n```\n\nBrowserslist will use browsers criterias from:\n\n1. First argument.\n2. `BROWSERSLIST` environment variable.\n3. `browserslist` config file in current or parent directories.\n4. If all methods will not give a result, Browserslist will use defaults:<br>\n `> 1%, last 2 versions, Firefox ESR`.\n\n<a href=\"https://evilmartians.com/?utm_source=browserslist\">\n<img src=\"https://evilmartians.com/badges/sponsored-by-evil-martians.svg\" alt=\"Sponsored by Evil Martians\" width=\"236\" height=\"54\">\n</a>\n\n[Autoprefixer]: https://github.com/postcss/autoprefixer\n[ci-img]: https://travis-ci.org/ai/browserslist.svg\n[ci]: https://travis-ci.org/ai/browserslist\n\n## Queries\n\nYou can specify the versions by queries (case insensitive):\n\n* `last 2 versions`: the last 2 versions for each major browser.\n* `last 2 Chrome versions`: the last 2 versions of Chrome browser.\n* `> 5%`: versions selected by global usage statistics.\n* `> 5% in US`: uses USA usage statistics. It accepts [two-letter country code].\n* `ie 6-8`: selects an inclusive range of versions.\n* `Firefox > 20`: versions of Firefox newer than 20.\n* `Firefox >= 20`: versions of Firefox newer than or equal to 20.\n* `Firefox < 20`: versions of Firefox less than 20.\n* `Firefox <= 20`: versions of Firefox less than or equal to 20.\n* `Firefox ESR`: the latest [Firefox ESR] version.\n* `iOS 7`: the iOS browser version 7 directly.\n* `not ie <= 8`: exclude browsers selected before by this query.\n You can add `not ` to any query.\n\nBlackberry and Android WebView will not be used in `last n versions`.\nYou should add them by name.\n\nBrowserslist works with separated versions of browsers. To use all versions\nof some browsers you can use for example `Firefox > 0`,\nbut it is bad practice.\n\n[two-letter country code]: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements\n\n## Browsers\n\nNames are case insensitive:\n\n* `Android` for Android WebView.\n* `BlackBerry` or `bb` for Blackberry browser.\n* `Chrome` for Google Chrome.\n* `Firefox` or `ff` for Mozilla Firefox.\n* `Explorer` or `ie` for Internet Explorer.\n* `Edge` for Microsoft Edge.\n* `iOS` or `ios_saf` for iOS Safari.\n* `Opera` for Opera.\n* `Safari` for desktop Safari.\n* `OperaMobile` or `op_mob` for Opera Mobile.\n* `OperaMini` or `op_mini` for Opera Mini.\n* `ChromeAndroid` or `and_chr` for Chrome for Android\n (mostly same as common `Chrome`).\n* `FirefoxAndroid` or `and_ff` for Firefox for Android.\n* `ExplorerMobile` or `ie_mob` for Internet Explorer Mobile.\n\n## Config File\n\nBrowserslist’s config should be named `browserslist` and have browsers queries\nsplit by a new line. You can write a comment after `#`:\n\n```yaml\n# Browsers that we support\n\n> 1%\nLast 2 versions\nIE 8 # sorry\n```\n\nBrowserslist will check config in every directory in `config.path` path.\nSo, if tool with Browserslist process `app/styles/main.css`, you can put\nconfig to root, `app/` or `app/styles`.\n\nYou can specify direct path to config by `config` option\nor `BROWSERSLIST_CONFIG` environment variables.\n\n## Environment Variables\n\nIf some tool use Browserslist inside, you can change browsers settings\nby [environment variables]:\n\n* `BROWSERSLIST` with browsers queries.\n\n ```sh\n BROWSERSLIST=\"> 5%\" gulp css\n ```\n\n* `BROWSERSLIST_CONFIG` with path to config file.\n\n ```sh\n BROWSERSLIST_CONFIG=./config/browserslist gulp css\n ```\n\n[environment variables]: https://en.wikipedia.org/wiki/Environment_variable\n\n## Usage\n\n```js\nvar browserslist = require('browserslist');\n\n// Your CSS/JS build tool code\nvar process = function (css, opts) {\n var browsers = browserslist(opts.browsers, { path: opts.file });\n // Your code to add features for selected browsers\n}\n```\n\nIf a list is missing, Browserslist will look for a config file.\nYou can provide a `path` option (that can be a file) to find the config file\nrelatively to it.\n\nQueries can be a string `\"> 5%, last 1 version\"`\nor an array `['> 5%', 'last 1 version']`.\n\nFor non-JS environment and debug purpose you can use CLI tool:\n\n```sh\nbrowserslist \"> 1%, last 2 version\"\n```\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/ai/browserslist.git" }, "scripts": { "test": "gulp" }, "version": "1.0.1" }