A command-line utility for generating Tables of Contents for Github markdown files. All links are Github-compatible anchors.
###Usage By default, the a maximum header depth of 6 is utilized.
ghtoc [options] <user> <repository>
Options:
-h, --help output usage information
-V, --version output the version number
-d, --depth <number> specifiy the maximum header depth (1 - 6) of the toc
-o, --open open the readme in browser
###Installation
$ npm install -g github-toc-generator##Contributing Issues and pull requests are welcome.
$ git clone https://github.com/jackrzhang/github-toc-generator
$ cd github-toc-generator
$ npm install -gPlease run linting and tests prior to commits.
$ npm run lint
$ npm test##License MIT