node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

markdown-gitlab-toc

[PROTOTYPE]

Description

$ bin/markdown-gitlab-toc.js --help
 
  Usage: markdown-gitlab-toc [options] <paths ...>
 
  Options:
 
    -h, --help            output usage information
    -V, --version         output the version number
    -o, --output <path>   Output to a file
    -x, --exclude <path>  Exclude matched paths

Usage

$ markdown-gitlab-toc -o ./TOC.md -x "node_modules|TOC.md|js/components" .

Output

# Table of Contents
 
* [README.md](README.md)
* src
        * [consumers](src/consumers/README.md)
        * [crons](src/crons/README.md)
        * [api](src/api/README.md)