Darksider3/github-toc-generator

A command-line tool for generating Tables of Contents for Github markdown files

★ 0Forks 0JavaScriptGitHub ↗Compare

README

#github-toc-generator npm Build Status dependencies Status

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 -g

Please run linting and tests prior to commits.

$ npm run lint
$ npm test

##License MIT

Contributors

jackrzhangDarksider3

Issues