ast-metadata-inferer
```js import AstMetadata from 'ast-metadata-inferer';
Last updated 8 years ago by amilajack .
MIT · Repository · Original npm · Tarball · package.json
$ npm install ast-metadata-inferer 
SYNC missed versions from official npm registry.

ast-metadata-inferer

Build Status

A collection of metadata about browser API's. This collection is intended for tools that analyze javascript.

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

  • AST node type of the API (MemberExpression, NewExpression, or CallExpression)
  • If the API is statically invoked
  • The kind of API it is

Example

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" },
//       ...
//     }
//   }
// }

Current Tags

  • 0.8.1                                ...           latest (2 years ago)
  • 0.8.0-1                                ...           next (4 years ago)

23 Versions

  • 0.8.1                                ...           2 years ago
  • 0.8.0                                ...           4 years ago
  • 0.8.0-1                                ...           4 years ago
  • 0.8.0-0                                ...           4 years ago
  • 0.7.0                                ...           5 years ago
  • 0.6.0                                ...           5 years ago
  • 0.5.1                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.4.0                                ...           6 years ago
  • 0.4.0-0                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.3.0-1                                ...           6 years ago
  • 0.3.0-0                                ...           6 years ago
  • 0.2.0                                ...           7 years ago
  • 0.2.0-0                                ...           7 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.1-3                                ...           8 years ago
  • 0.1.1-2                                ...           8 years ago
  • 0.1.1-1                                ...           8 years ago
  • 0.1.1-0                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
  • 0.0.1                                ...           8 years ago
  • 0.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 69
Today 4
This Week 4
This Month 34
Last Day 0
Last Week 0
Last Month 26
Dependencies (0)
None
Dev Dependencies (15)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE