github-markdown-toc

Generate table of contents for GitHub README.md files

brewmacoslinux
Try with needOr install directly
Source

About

Easy TOC creation for GitHub README.md (in go)

Commands

gh-md-toc

Examples

Generate TOC for a local README file$ gh-md-toc README.md
Generate TOC for a GitHub repository README$ gh-md-toc https://github.com/user/repo/blob/master/README.md
Save generated TOC to a file$ gh-md-toc README.md > toc.txt