How to use the flow-parser/package.json.homepage function in flow-parser

To help you get started, we’ve selected a few flow-parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fkling / astexplorer / website / src / parsers / js / flow.js View on Github external
'esproposal_decorators',
    'esproposal_export_star_as',
    'esproposal_optional_chaining',
    'esproposal_nullish_coalescing',
    'tokens',
    'types',
  ],
};

export default {
  ...defaultParserInterface,

  id: ID,
  displayName: ID,
  version: pkg.version,
  homepage: pkg.homepage || 'https://flowtype.org/',
  locationProps: new Set(['range', 'loc']),

  loadParser(callback) {
    require(['flow-parser'], callback);
  },

  parse(flowParser, code, options) {
    return flowParser.parse(code, options);
  },

  getDefaultOptions() {
    return defaultOptions;
  },

  _getSettingsConfiguration() {
    return parserSettingsConfiguration;

flow-parser

JavaScript parser written in OCaml. Produces ESTree AST

MIT
Latest version published 9 days ago

Package Health Score

90 / 100
Full package analysis

Similar packages