Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
gen-md-toc
Advanced tools
Readme
Quickly generate a table of contents from a markdown file and optionally insert it inline.
# Install on a project as a dev dependancy
npm i -D gen-md-toc
# Output a table of contents for a README.md in the current directory
npx gen-md-toc
# Insert a table of contents in the local README.md
# -> Replaces inbetween <!-- toc-head --> and <!-- toc-tail -->
npx gen-md-toc -i
# Output a table of contents for a different file
npx gen-md-toc -f CONTRIBUTING.md
Usage: gen-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 readme file you want to use is (default: "README.md")
-i --inline [false] whether to edit the table of contents inline, it replaces for '<!-- toc-head -->' and <!-- toc-tail --> (default: false)
-h, --help output usage information
This module only has 2 dependancies, casex & commander, as of writing neither of which have any nested dependancies.
You can use this programmatically in node by importing the module, see cli.js for detailed usage.
const { tableOfContents, headTag, tailTag } = require('gen-md-toc')
// filename: string
// inline: boolean
tableOfContents(filename, inline)
FAQs
A CLI to generate a markdown table of contents & insert it in
The npm package gen-md-toc receives a total of 0 weekly downloads. As such, gen-md-toc popularity was classified as not popular.
We found that gen-md-toc 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.