
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
md-toc-generator
Advanced tools
Creates and updates tables of content in your markdown files.
Install the package globally or as a local dependency:
# npm install md-toc-generator
# npm install --global md-toc-generator
# yarn global add md-toc-generator
yarn add md-toc-generator
Add a placeholder to files that you want to create ToC for:
[//]: # "BEGIN_TOC"
[//]: # "END_TOC"
Then call the script:
# adds/updates ToC README.md in current directory
md-toc-generator
# adds/updates ToC wherever you point it to
md-toc-generator --paths <PATH_TO_MD_FILE>
If you want to lint your markdown files to see if the ToC is up to date, but without changing anything, use the --ci flag (example usage in the GitHub actions of this project).
md-toc-generator --ci
If you want to ensure that given markdown files have a toc, use the --placeholder-required option.
See LICENSE file.
FAQs
> Creates and updates tables of content in your markdown files.
The npm package md-toc-generator receives a total of 20 weekly downloads. As such, md-toc-generator popularity was classified as not popular.
We found that md-toc-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.