Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Repo-to-PDF is a tool that allows you to convert a GitHub repository into a PDF file. It clones the repository, processes the files, and then creates a PDF.
FreeCodeCamp repository was converted into a PDF from 42,998 files to 186,453 pages in under 2 minutes. This conversion is purely for example and stress testing purposes. All content belongs to the original authors at FreeCodeCamp. You can view the PDF here.
To use Repo-to-PDF, you have two options: cloning the repository from GitHub or installing it directly using NPX. Choose the method that suits you best.
git clone https://github.com/BankkRoll/Repo-to-PDF
cd Repo-to-PDF
npm install
npm run build
npm start
This will download and install the latest version of Repo-to-PDF from the NPM registry.
npx repo2pdf
repo2pdf
Once you have installed Repo-to-PDF, you can use it to generate PDF files from GitHub repositories.
You will be prompted to provide the following information:'
The script will then clone the repository, process the files, and generate a PDF document based on the provided information.
Please note that you need to have Node.js installed on your system in order to run Repo-to-PDF.
Repo-to-PDF automatically ignores certain file types and directories (e.g., .png
, .git
).
To customize the files and directories to ignore, you can add a repo2pdf.ignore
file to the root of your repository.
Please note that if you use a local repository, the repo2pdf.ignore
file must be in the root of the repository directory. And you might need to add more directories to the ignore list, as the script not automatically ignores different build files and directories.
{
"ignoredFiles": ["tsconfig.json"],
"ignoredExtensions": [".md"]
}
Q: I'm getting an error "Failed to install [package-name]". What should I do? A: Make sure you have Node.js and npm installed on your system. Try running the following command to install the required package manually:
npm install [package-name]
Q: How can I customize the styling of the generated PDF?
A: You can modify the code in clone.ts
or syntax.ts
to change the font, font size, colors, and other styling options for the PDF document.
We welcome contributions! Here's how you can help:
Repo-to-PDF is open source software, licensed under the MIT License. See the LICENSE
file for more information.
FAQs
A CLI tool for generating a PDF document from a GitHub repository
We found that repo2pdf 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.