Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vigour-jsdoc2md

vigour-io19ISC1.0.4

Converts jsdoc comment blocks to markdown

vigour, vigour-doc, jsdoc, md, markdown, jsdoc2md

readme

Build Status js-standard-style npm version

jsdoc2md

Converts jsdoc comment blocks to markdown

npm i vigour-jsdoc2md

usage

var markdown = jsdoc2md(jsdoc)

Converts jsdoc comment blocks to markdown

  • jsdoc (string) - the jsdoc comment block to convert

example

var jsdoc2md = require('vigour-jsdoc2md')
jsdoc2md(`
/**
 * @id jsdoc2md
 * @function jsdoc2md
 * Converts jsdoc comment blocks to markdown
 * @param {string} jsdoc - the jsdoc comment block to convert
 * @param {object} [options] - an object full of options
 * @returns {string} markdown - the resulting markdown
 */`)

var markdown = jsdoc2md(jsdoc, [options])

Converts jsdoc comment blocks to markdown

  • jsdoc (string) - the jsdoc comment block to convert
  • [options] (object) - an object full of options

  • returns (string) markdown - the resulting markdown