Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@technote-space/doctoc
Advanced tools
Generates table of contents for markdown files inside local git repository. Links are compatible with anchors generated by github or other sites via a command line flag.
yarn add @technote-space/doctoc
import {readFileSync} from 'fs';
import {findMarkdownFiles, transform} from '@technote-space/doctoc';
findMarkdownFiles(__dirname);
transform(readFileSync('README.md', {
// mode: 'github.com', // github.com | bitbucket.org | gitlab.com | nodejs.org | ghost.org (default: github.com)
// maxHeaderLevel: 2, // default: 4
// title: '**Table of Contents**',
// isNotitle: true,
// isFolding: true,
// entryPrefix: '*',
// processAll: true,
// updateOnly: true,
// openingComment: '<!-- toc -->',
// closingComment: '<!-- tocstop --> ',
// checkOpeningComments: ['<!-- toc '],
// checkClosingComments: ['<!-- tocstop '],
// isCustomMode: false,
// customTemplate: '<p align="center">${ITEMS}</p>',
// itemTemplate: '<a href="${LINK}">${TEXT}</a>',
// separator: '<span>|</span>',
// footer: '',
}));
FAQs
Generates TOC for markdown files of local git repo.
The npm package @technote-space/doctoc receives a total of 9,096 weekly downloads. As such, @technote-space/doctoc popularity was classified as popular.
We found that @technote-space/doctoc 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.