{"name":"ast-metadata-inferer","version":"0.8.1","main":"compat.json","repository":{"type":"git","url":"git+ssh://git@github.com/amilajack/ast-metadata-inferer.git"},"author":{"name":"Amila Welihinda","email":"amilajack@gmail.com"},"license":"MIT","devDependencies":{"@tsconfig/node16":"^1.0.3","@types/jest":"^29.4.0","@types/node":"^18.13.0","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","electron":"^23.0.0","eslint":"^8.33.0","eslint-config-bliss":"^6.0.5","jest":"^29.4.2","puppeteer":"^19.6.3","ts-jest":"^29.0.5","ts-node":"^10.9.1","typescript":"^4.9.5"},"scripts":{"build":"rm -rf lib && tsc && npm run metadata && npm run compat","compat":"ts-node ./src/compat.ts","lint":"eslint . --ext .js,.jsx,.ts,.tsx","metadata":"ts-node ./src/metadata.ts","preversion":"npm test && npm run compat && tsc --project tsconfig.build.json","start":"npm run metadata","test":"jest && npm run build"},"eslintConfig":{"extends":["plugin:import/errors","plugin:import/typescript","prettier/@typescript-eslint","plugin:prettier/recommended","plugin:promise/recommended"],"parserOptions":{"ecmaVersion":2018,"sourceType":"module"},"rules":{"import/extensions":"off","prettier/prettier":["error"]},"overrides":[{"extends":["bliss","plugin:import/typescript","plugin:@typescript-eslint/recommended","prettier/@typescript-eslint","plugin:prettier/recommended","plugin:promise/recommended"],"files":["*.ts","*.tsx"],"parser":"@typescript-eslint/parser","parserOptions":{"ecmaVersion":2018,"sourceType":"module"},"rules":{"import/default":"off","import/extensions":"off","import/no-extraneous-dependencies":"off","@typescript-eslint/no-var-requires":"off"}},{"files":["*.spec.ts","*.spec.tsx"],"rules":{"@typescript-eslint/ban-ts-ignore":"off"}}]},"dependencies":{"@mdn/browser-compat-data":"^5.6.19"},"_id":"ast-metadata-inferer@0.8.1","gitHead":"88a6e95125436fe1b2a73cd60f85c96389824256","description":"[![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)","bugs":{"url":"https://github.com/amilajack/ast-metadata-inferer/issues"},"homepage":"https://github.com/amilajack/ast-metadata-inferer#readme","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-ht3Dm6Zr7SXv6t1Ra6gFo0+kLDglHGrEbYihTkcycrbHw7WCcuhBzPlJYHEsIpycaUwzsJHje+vUcxXUX4ztTA==","shasum":"85081bf30308acd4c35fb8694658b4c5f6f3ee60","tarball":"http://registry-npm.ywwl.com/ast-metadata-inferer/download/ast-metadata-inferer-0.8.1.tgz","fileCount":23,"unpackedSize":18263456,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGn1MSmCQiHvG3sOTBYi9iw6U3mcfST8zP5KFJswZl/xAiBuz7stwKgNmBv9iQemto6qjgwz/iOHvGPIRNR2P0wV2g=="}],"size":837496,"noattachment":false,"key":"/ast-metadata-inferer/-/ast-metadata-inferer-0.8.1.tgz"},"_npmUser":{"name":"amilajack","email":"amilajack@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ast-metadata-inferer_0.8.1_1733946161925_0.793085664302076"},"_hasShrinkwrap":false,"readme":"# ast-metadata-inferer\n\n[![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)\n\nA collection of metadata about browser API's. This collection is intended for tools that analyze JS. It currently supports more than 6,000 compatibility records.\n\nFor all the API's it supports, it gives the\n\n- AST node type of the API (`MemberExpression`, `NewExpression`, or `CallExpression`)\n- Determines if an API is statically invoked (ex. `document.querySelector()`)\n- Determines if an API is a CSS or JS API\n- Provides compatibility information from `@mdn/browser-compat-data`\n\n## Usage\n\n```js\nimport AstMetadata from \"ast-metadata-inferer\";\n\nconst [firstRecord] = AstMetadata;\nconsole.log(firstRecord);\n// {\n//   \"language\":\"js-api\",\n//   \"protoChain\":[\"document\",\"querySelector\"],\n//   \"protoChainId\":\"document.querySelector\",\n//   \"astNodeTypes\":[\"MemberExpression\"],\n//   \"isStatic\":true,\n//   \"compat\": {\n//     support: {\n//       chrome: {\n//         version_added: \"14\"\n//       },\n//       chrome_android: { version_added: \"18\" },\n//       ...\n//     }\n//   }\n// }\n```\n\n## Related\n\n- [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat)\n- [compat-db](https://github.com/amilajack/compat-db)\n","publish_time":1733946162186,"maintainers":[{"name":"amilajack","email":"amilajack@gmail.com"}],"_cnpm_publish_time":1733946162186,"dist-tags":{"latest":"0.8.1","next":"0.8.0-1"}}