{"id":18712421,"url":"https://github.com/serkodev/mdn-compat-browserlist","last_synced_at":"2026-05-05T11:33:55.575Z","repository":{"id":57675269,"uuid":"481868856","full_name":"serkodev/mdn-compat-browserlist","owner":"serkodev","description":"List all browsers compat data from MDN and filter with browserlist.","archived":false,"fork":false,"pushed_at":"2022-04-19T18:58:23.000Z","size":59,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T03:07:46.612Z","etag":null,"topics":["browser","browserlist","caniuse","compatible","css","html","javascript","mdn"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serkodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-15T07:01:46.000Z","updated_at":"2022-04-17T05:28:50.000Z","dependencies_parsed_at":"2022-09-26T22:01:31.038Z","dependency_job_id":null,"html_url":"https://github.com/serkodev/mdn-compat-browserlist","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/serkodev/mdn-compat-browserlist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serkodev%2Fmdn-compat-browserlist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serkodev%2Fmdn-compat-browserlist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serkodev%2Fmdn-compat-browserlist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serkodev%2Fmdn-compat-browserlist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serkodev","download_url":"https://codeload.github.com/serkodev/mdn-compat-browserlist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serkodev%2Fmdn-compat-browserlist/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267057555,"owners_count":24028851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","browserlist","caniuse","compatible","css","html","javascript","mdn"],"created_at":"2024-11-07T12:42:45.267Z","updated_at":"2026-05-05T11:33:55.544Z","avatar_url":"https://github.com/serkodev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mdn-compat-browserlist\n\nList all browsers compat data from [MDN](https://developer.mozilla.org/) and filter with [browserlist](https://github.com/browserslist/browserslist).\n\n## Features\n\n- [x] [Support filter all browserlist queries](#usage)\n- [x] List all [browser unsupported features](#unsupport-listing) (including HTML, CSS, JavaScript, SVG, Web API, WebExtensions, etc.)\n- [x] List all [alternative CSS properties](#alternative-css-properties) (`-webkit`, `-moz`, etc.)\n- [ ] List all browser supported features\n\n## Install\n\n```\nnpm install mdn-compat-browserlist\n```\n\n```\nyarn add mdn-compat-browserlist\n```\n\n## Setup\n\n```js\nimport { MdnCompat } from \"mdn-compat-browserlist\";\nimport bcd from \"@mdn/browser-compat-data\";\n```\n\n## Usage\n\nInit `MdnCompat` with browserlist query and config (optional).\n\n```js\nconst compat = new MdnCompat([\"\u003e 0.5%\", \"last 2 versions\", \"not dead\"]);\n```\n\n### Unsupport listing\n\n```\ncompat.unsupport(bcd.css);\ncompat.unsupport(bcd.css.properties);\ncompat.unsupport(bcd.css.properties[\"justify-content\"]);\n```\n\n#### Results\n\nFor listing unsupported features, the browser list in `__browsers` will contains the max version of the browser which filter by browserlist query.\n\n##### Normal result sample\n\nmust contains `__browsers` key\n\n```js\n'box-shadow': {\n  __browsers: {\n    chrome: '100',\n    chrome_android: '100',\n    firefox: '99',\n    firefox_android: '99',\n    opera_android: '64',\n    safari: '15.4',\n    safari_ios: '15.4',\n    samsunginternet_android: '16.0',\n    webview_android: '100'\n  }\n}\n```\n\n##### Nested result sample\n\nmust NOT contains `__browsers` key\n\n```js\n'justify-content': {\n  flex_context: {\n    __browsers: { firefox: '99', firefox_android: '99' }\n  },\n  grid_context: {\n    __browsers: { ie: '11' }\n  }\n}\n```\n\n### Alternative CSS properties\n\n```js\ncompat.alternative(bcd.css.properties);\ncompat.alternative(bcd.css.properties[\"justify-content\"]);\n```\n\n#### Results\n\n```js\ncompat.alternative(bcd.css.properties[\"font-smooth\"]);\n\n// output\n[\"-webkit-font-smoothing\", \"-moz-osx-font-smoothing\"];\n```\n\n```js\ncompat.alternative(bcd.css.properties[\"justify-content\"]);\n\n// output\n{\n  flex_context: [\"-webkit-justify-content\"],\n  grid_context: []\n}\n```\n\n## License\n\nMIT License\n\nCC0-1.0 License for MDN data\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserkodev%2Fmdn-compat-browserlist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserkodev%2Fmdn-compat-browserlist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserkodev%2Fmdn-compat-browserlist/lists"}