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.
mkdocs-strings-replacement
Advanced tools
Mkdocs Markdown strings replacement plugin.
pip install mkdocs-strings-replacement
Enable the plugin in your mkdocs.yml
:
plugins:
- mkdocs-strings-replacement:
strings_replacements:
- old_value: "This string will be replaced"
new_value: "with this string"
Note:
strings_replacements
is an array of pairs of the old_value
's of the strings you want to replace with new_value
's of the strings you want to put there in exchange.old_value
and new_value
pairs then the replacement will occur from the top to the bottom of the pairs you have passed.plugins:
- mkdocs-strings-replacement:
strings_replacements:
- old_value: "[[_TOSP_]]"
new_value: ""
- old_value: "[[_TOC_]]"
new_value: ""
In the given example:
[[_TOSP_]]
will be replaced with nothing, which will results in erasing [[_TOSP_]]
from your pages.[[_TOC_]]
will be replaced with empty string as well.To install the dependencies for the plugin, run:
pip install .
To set up the development environment, including dependencies for running tests, run:
pip install -e .[dev]
To run the tests, use:
pytest
FAQs
Mkdocs strings replacement.
We found that mkdocs-strings-replacement demonstrated a healthy version release cadence and project activity because the last version was released less than 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.