
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.
@codejamninja/docusaurus-pdf
Advanced tools
This is a PDF generator from docusaurus document.
This is generated PDF of official docusaurus website: https://drive.google.com/file/d/19P3qSwLLUHYigrxH3QXIMXmRpTFi4pKB/view
npx docusaurus-pdf <initialDocsUrl> [filename]
For example
npx docusaurus-pdf http://localhost:3000/myBaseUrl/docs/doc1 hoge.pdf
*NOTE!
initialDocsUrl is required. You can spin up your dev-webserver of docusaurus with yarn start or use an already hosted page.filename is optional (default is docusaurus.pdf).docusaurus buildnpx docusaurus-pdf from-build [options] <dirPath> <firstDocPagePath> [baseUrl]
For example
npx docusaurus-pdf from-build build/ docs/doc1 /myBaseUrl/
You can also try to automatically load the firstDocPagePath and baseUrl from docusaurus.config.js:
npx docusaurus-pdf from-build-config
dirPath which points to the build directory created with docusaurus build.firstDocPagePath is the URL path segment (without baseUrl) of your first docs page you whish to have included in the PDF.baseUrl configured in your docusaurus.config.js then pass this value as baseUrl.npx docusaurus-pdf from-build --help.A table of contents will be generated wherever you place a <toc> tag. The items in the table of contents will be indented according to their header size.
The header will have class toc-header, the ul element will have class toc-list, and the individual li elements will have class toc-item.
All dependencies needed to create a PDF from your docusaurus site are bundled in our Dockerfile.
docker run --rm -it -v /someDir/my-docusaurus:/workspace maxys/docusaurus-pdf:latest from-build --no-sandbox -o /workspace/build/docs.pdf /workspace/build docs/doc1 myBaseUrl
You can create the image locally without pulling maxys/docusaurus-pdf:latest from the Docker Hub with:
docker build -t "docusaurus-pdf" .
static/img folder.<a> tag with target="_blank"<a href={useBaseUrl('img/docusaurus.pdf')} target="_blank">
Download PDF
</a>

FAQs
Generate pdf from docusaurus document
We found that @codejamninja/docusaurus-pdf 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.