Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

doctoc

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doctoc

Generates TOC for markdown files of local git repo.

  • 2.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is doctoc?

The doctoc npm package is a tool that automatically generates a table of contents for markdown files. It is particularly useful for projects with extensive documentation, as it helps in organizing and navigating through the content efficiently.

What are doctoc's main functionalities?

Generate Table of Contents

This command generates a table of contents for the specified markdown file (e.g., README.md). It scans the file for headers and creates a structured list with links to each section, which is then inserted at the top of the file.

doctoc README.md

Recursive Directory Processing

By running this command in a directory, doctoc will recursively process all markdown files within that directory, generating and updating tables of contents for each file. This is useful for projects with multiple documentation files.

doctoc .

Customizable TOC Title

This feature allows users to specify a custom title for the table of contents. By using the --title option, you can define how the TOC header should appear in the markdown file.

doctoc README.md --title '## Table of Contents'

Other packages similar to doctoc

Keywords

FAQs

Package last updated on 22 Sep 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc