1.0.2 • Published 5 years ago
gfm-toc v1.0.2
GitHub markdown TOC generator
Generate TOC.md file from all Markdown files in repository.
Usage
gfm-toc target-dirInstallation
npm i -g gfm-toc
# Run gfm-tocOr build from source.
npm
npm run build
# ./cli.js target-dirExample
See example directory. The input is like this,
.
├── ANOTHER.md
├── README.md
└── subdir
├── FRIEND.md
└── README.mdthen generate TOC.md like that,
# Table of contents
- [Top level](README.md#top-level)
- [Second level](README.md#second-level)
- [Another file](ANOTHER.md#another-file)
- [Another second](ANOTHER.md#another-second)
- [Subdirectory](subdir/README.md#subdirectory)
- [Sub secondary](subdir/README.md#sub-secondary)
- [Friend](subdir/FRIEND.md#friend)
- [Good to see you](subdir/FRIEND.md#good-to-see-you)when executing this command.
gfm-toc exampleLicense
MIT