How to use the vue-docgen-api.parseSource function in vue-docgen-api

To help you get started, we’ve selected a few vue-docgen-api 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 Radiergummi / phoenix / lib / parser / VueComponentParser.js View on Github external
static _parseSource ( source ) {
    return vueDocs.parseSource( source.code, );
github visualjerk / vue-cion-design-system / src / loader / jsdoc-loader.js View on Github external
module.exports = function(source) {
  const callback = this.async()
  const content = JSON.stringify(source)
    .replace(/\u2028/g, '\\u2028')
    .replace(/\u2029/g, '\\u2029')
    .replace(/\\n/g, '\n')
  const component = parseSource(content, this.resourcePath)
  callback(null, `module.exports = ${JSON.stringify(component)}`)


Toolbox to extract information from Vue component files for documentation generation purposes.

Latest version published 12 days ago

Package Health Score

95 / 100
Full package analysis

Popular vue-docgen-api functions