Gathering detailed insights and metrics for @robb_j/md-toc
Gathering detailed insights and metrics for @robb_j/md-toc
Gathering detailed insights and metrics for @robb_j/md-toc
Gathering detailed insights and metrics for @robb_j/md-toc
A CLI to generate a markdown table of contents & insert it in
npm install @robb_j/md-toc
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
25 Commits
2 Watchers
1 Branches
1 Contributors
Updated on Mar 05, 2023
Latest Version
0.3.3
Package Id
@robb_j/md-toc@0.3.3
Unpacked Size
8.72 kB
Size
3.94 kB
File Count
8
NPM Version
6.14.8
Node Version
12.16.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Quickly generate a table of contents from a markdown file and optionally insert it inline.
1# Install on a project as a dev dependancy 2npm i -D @robb_j/md-toc
You can use
npx md-toc
when added as a project dependancy
1# Output a table of contents for a README.md in the current directory 2npx @robb_j/md-toc 3 4# Insert a table of contents in the local README.md 5# -> Replaces inbetween <!-- toc-head --> and <!-- toc-tail --> 6npx @robb_j/md-toc -i 7 8# Output a table of contents for a different file 9npx @robb_j/md-toc -f CONTRIBUTING.md 10 11# Use a glob to process multiple files 12npx @robb_j/md-toc -f "**/*.md" 13 14# Test a glob to see what it matches 15npx @robb_j/md-toc -f "**/*.md" --dry-run
Usage: @robb_j/md-toc [options]
A tool for generating a table of contents for readmes
Options:
-V, --version output the version number
-f --file [README.md] specify where the markdown file(s) you want to process are, accepts a filename or a glob (default: "README.md")
-i --inline [false] edit the table of contents inline, it replaces between '<!-- toc-head -->' and <!-- toc-tail --> (default: false)
--dry-run [false] perform a dry run, useful for testing your glob
-h, --help output usage information
You can use this programmatically in node by importing the module, see cli.js for detailed usage.
1const { tableOfContents, headTag, tailTag } = require('@robb_j/md-toc') 2 3// filename: string 4// inline: boolean 5tableOfContents(filename, inline)
1# Run the cli when you have the repo checked out 2# NOTE: Make sure not to process this readme as it has toc-head/tail comments in for documentation only 3node src/cli.js # ...
md-toc <...pattern>
, perhaps as a varadic argumentThis repo was set up with robb-j/node-base
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/25 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
19 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More