I'm writing a Javascript library, and I'd like to be able to run it through some tool that will
So far I can't find anything like this. Does it really not exist?
Prior Research:
To verify JS browser compatibility quickly and accurately, try BrowserStack's real device cloud of 3000+ real browsers and devices, Just sign up for free, select the real browser-device combination you want to test on, enter the website URL and start testing.
You can use eslint-plugin-compat, a plugin for the ESlint linting utility. You can even use Browserlist to configure the browsers you want to support.
Installation is very easy. You'll have to install eslint and this plugin:
npm install --save-dev eslint-plugin-compat
or
yarn add --dev eslint eslint-plugin-compat
And add a ESlint configuration file:
// .eslintrc
{
"extends": ["plugin:compat/recommended"]
}
Add the supported browsers to your package.json
file:
// sample configuration (package.json)
{
// ...
"browserslist": ["last 2 Chrome versions", "IE 11"],
}
And then run the linter:
eslint yourfile.js
In my case this was the output:
92:9 error Promise.all() is not supported in IE 11 compat/compat
94:9 error Promise.all() is not supported in IE 11 compat/compat
I'd recommend you to use this website http://jscc.info/ Its done the job for me in the past.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With