Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mdn/browser-compat-data

Package Overview
Dependencies
Maintainers
5
Versions
270
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdn/browser-compat-data

Browser compatibility data provided by MDN Web Docs

  • 5.3.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
885K
decreased by-10.49%
Maintainers
5
Weekly downloads
 
Created

What is @mdn/browser-compat-data?

@mdn/browser-compat-data is a comprehensive dataset that provides browser compatibility information for various web technologies, including HTML, CSS, JavaScript, and more. It is maintained by MDN Web Docs and is useful for developers who need to know which features are supported by different browsers.

What are @mdn/browser-compat-data's main functionalities?

Check CSS property support

This feature allows you to check the browser compatibility of a specific CSS property. In this example, it checks the compatibility of the 'border-radius' property.

const bcd = require('@mdn/browser-compat-data');
const css = bcd.css.properties;
console.log(css['border-radius']);

Check JavaScript API support

This feature allows you to check the browser compatibility of a specific JavaScript API. In this example, it checks the compatibility of the 'Promise' API.

const bcd = require('@mdn/browser-compat-data');
const js = bcd.javascript.builtins;
console.log(js['Promise']);

Check HTML element support

This feature allows you to check the browser compatibility of a specific HTML element. In this example, it checks the compatibility of the 'video' element.

const bcd = require('@mdn/browser-compat-data');
const html = bcd.html.elements;
console.log(html['video']);

Other packages similar to @mdn/browser-compat-data

Keywords

FAQs

Package last updated on 04 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc