# Browserslist

> Defines and shares the list of target browsers between various frontend build tools.

- URL: https://evilmartians.com/opensource/browserslist
- GitHub: https://github.com/browserslist/browserslist
- Website: https://browsersl.ist/
- Authors: Andrey Sitnik

---

One of the most popular frontend library dependencies, Browserslist defines and shares the list of target browsers between various frontend build tools. It's used by Autoprefixer, Babel, and many others.

Browserslist enables the sharing of target browser and Node.js version configurations between various frontend tools. It's used in [Autoprefixer], [Babel], [postcss-preset-env], [eslint-plugin-compat], [stylelint-no-unsupported-browser-features], [postcss-normalize], [obsolete-webpack-plugin].

All frontend tools will automatically target the desired browser versions when you add the following to your `package.json`:

```json
  "browserslist": [
    "defaults and supports es6-module",
    "maintained node versions"
  ]
```

Or in your `.browserslistrc` config:

```yaml
# Browsers that we support

defaults and supports es6-module
maintained node versions
```

Developers can set their version lists using queries like `last 2 versions` and be free from the need to manually update versions. Browserslist uses [`caniuse-lite`] with [Can I Use] data for those queries.

Browserslist can take queries from tool options, `browserslist` config, `.browserslistrc` config,`browserslist` section in `package.json`, or environment variables.

[stylelint-no-unsupported-browser-features]: https://github.com/ismay/stylelint-no-unsupported-browser-features
[eslint-plugin-compat]:                      https://github.com/amilajack/eslint-plugin-compat
[postcss-preset-env]:                        https://github.com/jonathantneal/postcss-preset-env
[postcss-normalize]:                         https://github.com/jonathantneal/postcss-normalize
[`caniuse-lite`]:                            https://github.com/ben-eb/caniuse-lite
[Autoprefixer]:                              https://evilmartians.com/opensource/autoprefixer
[Can I Use]:                                 https://caniuse.com/
[Babel]:                                     https://github.com/babel/babel/tree/master/packages/babel-preset-env
[obsolete-webpack-plugin]:                   https://github.com/ElemeFE/obsolete-webpack-plugin
