One config for the browsers and Node.js versions your front-end tools target
open sourceMITfree
Browserslist is an MIT config format and JavaScript library that shares a project's target browsers and Node.js versions between front-end tools, so Autoprefixer, Babel, postcss-preset-env, eslint-plugin-compat, Stylelint plugins and others all read the same list. You write queries such as last 2 versions or defaults in package.json or a .browserslistrc file, and it resolves them against Can I Use data from caniuse-lite. Its site, browsersl.ist, shows which browsers a query matches.
Problems it solves
- set which browsers my CSS and JavaScript build should support in one place
- make Babel and Autoprefixer target the same browsers
- check which browsers a query like last 2 versions includes
Features
- one browser and Node.js target list shared by Autoprefixer, Babel, ESLint and Stylelint plugins
- queries like last 2 versions or defaults in package.json or .browserslistrc
- resolves queries against Can I Use data
- playground at browsersl.ist to see what a query matches
