1.0.4 • Published 8 years ago

vigour-jsdoc2md v1.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

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