1. doxme
create markdown docs for dox output
doxme
Package: doxme
Created by: tmcw
Last modified: Wed, 15 Jun 2022 23:09:51 GMT
Version: 1.8.2
License: ISC
Downloads: 768
Repository: https://github.com/tmcw/doxme

Install

npm install doxme
yarn add doxme

doxme

build status

create markdown docs for dox output

doxme(dox, readme, package, travis)

A Markdown formatter
for dox. Takes dox's JSON output as stdin
and writes Markdown to stdout.

  • Generates API documentation as well as entire READMEs (like this one!)
  • README generation supports Travis-CI badges

CLI Usage

dox -r < index.js | doxme

The doxme bin supports one important option: --readme. When
provided, it generates a full README.md file, including title,
description, installation and test instructions, and a
Travis-CI badge if the project is tested
with travis.

dox -r < index.js | doxme --readme > README.md

See Also

Parameters

parameter type description
dox Object the output of dox as a parsed JSON object
readme boolean whether to output a readme or just docs
package Object a parsed package.json
travis boolean whether to output a travis badge along with docs

Example

 var fs = require('fs');
var dox = require('dox');
var doxme = require('doxme');

var sourceCode = fs.readFileSync('./index.js', 'utf8');
var documentation = doxme(dox.parseComments(sourceCode));

Returns String, documentation

Installation

Requires nodejs.

 $ npm install doxme

Tests

 $ npm test

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code