Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
For GenAI and LLM usage. This package converts codebase (folder structure with files) into a single text file or a Microsoft Word document (.docx), preserving folder structure and file contents. The tool extracts file contents from various file types, including text files, documents, and more, while retaining their formatting for easy readability.
Converts a codebase (folder structure with files) into a single text file or a Microsoft Word document (.docx), preserving folder structure and file contents.
You can install the package using pip:
pip install codebase-to-text
You can use the package via the command line interface (CLI):
codebase-to-text --input "path_or_github_url" --output "output_path" --output_type "txt"
You can also use it programmatically in your Python code:
from codebase_to_text import CodebaseToText
code_to_text = CodebaseToText(input_path="path_or_github_url", output_path="output_path", output_type="txt")
code_to_text.get_file()
--input: Input path (local folder or GitHub URL). --output: Output file path. --output_type: Output file type (txt or docx).
Convert a local codebase to a text file:
codebase-to-text --input "~/projects/my_project" --output "output.txt" --output_type "txt"
Convert a GitHub repository to a Microsoft Word document:
codebase-to-text --input "https://github.com/username/repo_name" --output "output.docx" --output_type "docx"
License This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A Python package to convert codebase to text
We found that codebase-to-text 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.