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, source.name );
  }
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)}`)
}

vue-docgen-api

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

MIT
Latest version published 3 months ago

Package Health Score

91 / 100
Full package analysis

Popular vue-docgen-api functions