
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
typedoc-plugin-replace-in-comments
Advanced tools
This is a plugin for TypeDoc that replaces text in comments. You can specify matching patterns and the text they should be replaced with.
This can be useful for:
This module can be installed using npm:
$ npm install typedoc-plugin-replace-in-comments --save-dev
TypeDoc automatically detects plugins installed via npm. After installation TypeDoc can be used normally and you can configure this plugin as described below.
This plugin adds a new option to TypeDoc: replace-in-comments-config
The option defines the regular expression matching patterns and the texts they should be replaced with. You can specify the config using one of the following methods:
tsconfig.json file (within the typedocOptions object) ORtypedoc.json fileExample of a typedoc.json configuration:
{
"out": "docs",
"replace-in-comments-config": [
{
"pattern": "(GH-(\\d+))",
"replace": "[$1](https://github.com/your-name/the-repo/issues/$2)"
},
{
"pattern": "The King Himself",
"flags": "gi",
"replace": "[The King Himself](https://github.com/the-king-himself)"
}
]
}
The option must define an array of objects with the following properties:
| Property | Description |
|---|---|
| pattern | The regular expression pattern used to find the text that should be replaced. |
| flags | Flags for the regular expression pattern. (optional - defaults to "g") |
| replace | The text that should be used as a replacement. |
The properties are passed to a call of String.replace as follows:
comment = comment.replace(new Regex(PATTERN, FLAGS), REPLACE);
Please report bugs here. Thanks for your contribution!
If you find this piece of software helpful, please consider a donation. Any amount is greatly appreciated.
FAQs
Plugin for TypeDoc that replaces text in comments
The npm package typedoc-plugin-replace-in-comments receives a total of 0 weekly downloads. As such, typedoc-plugin-replace-in-comments popularity was classified as not popular.
We found that typedoc-plugin-replace-in-comments 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.