Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis. Learn more
Socket
Log inDemoInstall

@yurijmikhalevich/ast-metadata-inferer

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

@yurijmikhalevich/ast-metadata-inferer

[![Test](https://github.com/amilajack/ast-metadata-inferer/actions/workflows/test.yml/badge.svg)](https://github.com/amilajack/ast-metadata-inferer/actions/workflows/test.yml)

    0.7.0latest
    GitHub

Version published
Maintainers
1
Weekly downloads
1,012
increased by45.19%

Weekly downloads

Readme

Source

ast-metadata-inferer

Test

A collection of metadata about browser API's. This collection is intended for tools that analyze JS. It currently supports 3993 compatibility records.

For all the API's it supports, it gives the

  • AST node type of the API (MemberExpression, NewExpression, or CallExpression)
  • Determines if an API is statically invoked (ex. document.querySelector())
  • Determines if an API is a CSS or JS API
  • Provides compatibility information from @mdn/browser-compat-data

Usage

import AstMetadata from "ast-metadata-inferer"; const [firstRecord] = AstMetadata; console.log(firstRecord); // { // "language":"js-api", // "protoChain":["document","querySelector"], // "protoChainId":"document.querySelector", // "astNodeTypes":["MemberExpression"], // "isStatic":true, // "compat": { // support: { // chrome: { // version_added: "14" // }, // chrome_android: { version_added: "18" }, // ... // } // } // }

Support

If this project is saving you (or your team) time, please consider supporting it on Patreon 👍 thank you!

FAQs

Last updated on 02 Sep 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc