Coder Social home page Coder Social logo

dontcallmedom / bcd-idl-mapper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saschanaz/bcd-idl-mapper

0.0 2.0 0.0 719 KB

Retrieves browser compatibility data by IDL name, including mixins and legacy aliases.

Home Page: https://www.npmjs.com/package/bcd-idl-mapper

License: ISC License

JavaScript 100.00%

bcd-idl-mapper's Introduction

bcd-idl-mapper

This exposes a modified api field value of @mdn/browser-compat-data as the default export, with the following changes:

  • Mixins are in __mixins, e.g. api.__mixins.WindowEventHandlers.onstorage.
    • Each member data have no direct __compat
    • Each member data have subitems with __compat, e.g. api.__mixins.NavigatorLanguage.language.WorkerNavigator
  • CSS properties are in CSSStyleDeclaration in camel cased form, e.g. api.CSSStyleDeclaration.justifyContent
  • alternative_name and prefix are mapped as separate items, e.g. api.Navigator.clientInformation and api.CSSStyleDeclaration.webkitJustifyContent.

.__compat.support object has one more field named preferred_name, which only exists in items generated from alternative_name or prefix.

Dependencies

This package has two peer dependencies, which means you should explicitly install them together.

bcd-idl-mapper's People

Contributors

saschanaz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.