JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 109928
  • Score
    100M100P100Q168566F
  • License MIT

Generate a JSON documentation for a Svelte file

Package Exports

  • sveltedoc-parser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sveltedoc-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

The sveltedoc parser

Key Features

  • JSDoc support
  • Extract the component description from JSDoc
  • Extract used components list (with short or reference notations)
  • Extract data properties
  • Extract computed properties with dependencies
  • Extract events that fired by this component
  • Extract events that propogated from child component
  • Extract custom implemented events
  • Extract list of used default and named slots
  • Extract component methods
  • Extract component helpers
  • Extract component actions
  • Extract used refs in template nodes

Configuration

json Path Description Default value
filename The filename to parse. Required, unless fileContent is passed.
fileContent The file content to parse. Required, unless filename is passed.
encoding The file encoding. 'utf8'
features The component features to parse and extracting. By default used all supported features.
ignoredVisibilities The list of ignored visibilities. ['private', 'protected']

Issues

All list of known issues presented at this page. Found a new issues? Please contribute and write detailed description here.

Contributors

Author Alexey Mulyukin

Based on vuedoc-parse