$ cnpm install ast-metadata-inferer
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
MemberExpression
, NewExpression
, or CallExpression
)document.querySelector()
)mdn-browser-compat-data
import AstMetadata from 'ast-metadata-inferer';
const [firstRecord] = AstMetadata;
console.log(firstRecord);
// {
// "apiType":"js-api",
// "type":"js-api",
// "protoChain":["document","querySelector"],
// "protoChainId":"document.querySelector",
// "astNodeTypes":["MemberExpression"],
// "isStatic":true,
// "compat": {
// support: {
// chrome: {
// version_added: "14"
// },
// chrome_android: { version_added: "18" },
// ...
// }
// }
// }
Copyright 2013 - present © cnpmjs.org