headers2md

1.0.0 • Public • Published

headers2md build

Automagically generate table of contents from the headers in your markdown files

Install

$ npm install --global headers2md

Usage

Example

You will most likely want to use the CLI.

Given the following readme.md:

This is the table of contents:

<!-- START headers2md -->
<!-- END headers2md -->

# A
# B

Execute:

$ headers2md readme.md

And you will obtain:

This is the table of contents:

<!-- START headers2md -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN headers2md TO UPDATE -->

- [Install](#install)
- [Usage](#usage)
- [Changelog](#changelog)
- [Related](#related)
- [License](#license)

<!-- END headers2md -->

# A
# B

You can see an example at: aymericbeaumet/awesome-links.

API

todo

CLI

todo

Changelog

  • 1.0.0
    • Bump stable

Related

License

CC0

To the extent possible under law, Aymeric Beaumet has waived all copyright and related or neighboring rights to this work.

Dependencies (5)

Dev Dependencies (2)

Package Sidebar

Install

npm i headers2md

Weekly Downloads

1

Version

1.0.0

License

CC0-1.0

Last publish

Collaborators

  • aymericbeaumet