🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

readme-toc

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readme-toc

Generate a TOC for your project's README in 2 seconds, maybe 3.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

readme-toc NPM version

Generate a TOC for your project's README in 2 seconds, maybe 3.

npm i -g readme-toc --save

Usage

First, add this code comment to your README wherever you want the TOC to be generated.

<!-- toc -->

Next, from same directory as your README, run the following in the command line:

toc

Example

After running the first time, the generated TOC will look like this:

<!-- toc -->
* [Usage](#usage)
* [Author](#author)
* [License](#license)

<!-- toc stop -->

Which looks like this in the browser:

Note that GitHub Flavored Markdown requires the extra newline for the <!-- toc stop --> code comment to remain hidden.

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, Brian Woodward, contributors. Released under the MIT license

Keywords

readme-toc

FAQs

Package last updated on 02 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts