{"id":24300802,"url":"https://github.com/thetwopct/folder2txt","last_synced_at":"2026-05-29T08:31:27.437Z","repository":{"id":270917076,"uuid":"910516452","full_name":"thetwopct/folder2txt","owner":"thetwopct","description":"Convert local folder contents into a single text file with ease - perfect for analysis, documentation, or AI/LLM training purposes.","archived":false,"fork":false,"pushed_at":"2025-06-18T20:34:12.000Z","size":54,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T14:23:07.724Z","etag":null,"topics":["ai-tools","ai-training","cli","llm-training","text"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/folder2txt","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thetwopct.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-31T13:51:55.000Z","updated_at":"2025-08-27T08:41:09.000Z","dependencies_parsed_at":"2025-01-04T02:39:12.482Z","dependency_job_id":"7d4e8a6b-dfff-44e9-97b2-8f934d1f64a5","html_url":"https://github.com/thetwopct/folder2txt","commit_stats":null,"previous_names":["thetwopct/folder2txt"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thetwopct/folder2txt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thetwopct%2Ffolder2txt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thetwopct%2Ffolder2txt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thetwopct%2Ffolder2txt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thetwopct%2Ffolder2txt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thetwopct","download_url":"https://codeload.github.com/thetwopct/folder2txt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thetwopct%2Ffolder2txt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33644173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-tools","ai-training","cli","llm-training","text"],"created_at":"2025-01-16T23:17:39.305Z","updated_at":"2026-05-29T08:31:27.431Z","avatar_url":"https://github.com/thetwopct.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# folder2txt\n\nConvert local folder contents into a single text file with ease. This CLI tool processes all files in a folder and concatenates their contents into a single text file, making it perfect for analysis, documentation, or AI training purposes.\n\n## Features\n\n- 📁 Process files in any local folder\n- 📝 Convert folder contents to a single text file\n- ⚡ Automatic binary file exclusion\n- 🔧 Configurable file size threshold\n- 💻 Cross-platform support (Windows, macOS, Linux)\n\n## Installation\n\nInstall globally via npm:\n\n```sh\nnpm install --global folder2txt\n```\n\nthen navigate to the folder you want to convert to a txt file, and run:\n\n```sh\n$ folder2txt\n```\n\n## Options\n\n```sh\n--output, -o     Specify output file path (default: output.txt)\n--threshold, -t  Set file size threshold in MB (default: 0.1)\n--include-all    Include all files regardless of size or type\n--debug         Enable debug mode with verbose logging\n--help          Show help\n--version       Show version\n```\n\n## Default Behavior\n\n- Files larger than 100KB are excluded by default\n- Binary files are automatically excluded\n- The output file is created in the current directory and named output.txt\n- Files are processed recursively through all subdirectories (excluding the output file’s directory, node_modules, vendor, .lock files and .git)\n- File paths and contents are separated by clear markers\n- Relative paths are preserved in the output\n\n## Output Format\n\nThe tool generates a text file with this format:\n\n```txt\n================================================================================\nFile: path/to/file.txt\nSize: 1.2 KB\n================================================================================\n\n[File contents here]\n\n================================================================================\nFile: another/file.js\nSize: 4.5 KB\n================================================================================\n\n[File contents here]\n```\n\n## Install folder2txt\n\n1. Using terminal or another CLI, download from npm and install as a global package - `npm install -g folder2txt`\n2. Using terminal or another CLI, navigate to the folder  you want to copy in to a text file.\n3. Run `folder2txt`.\n\n## Update folder2txt\n\nTo update to the latest version you can just run the install command again - `npm install -g folder2txt`\n\n## Feedback and issues\n\nPlease open an issue in the [GitHub repo](https://github.com/thetwopct/folder2txt/issues). Thanks.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\nfolder2txt is based on git2txt by Addy Osmani and retains the original MIT License.\n\n## Changelog\n\n1.0.2\nFixed Windows compatibility - thanks to @darthwalsh\n\n1.0.1\nAdds more ignored files and folders\n\n1.0.0\nInitial release","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthetwopct%2Ffolder2txt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthetwopct%2Ffolder2txt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthetwopct%2Ffolder2txt/lists"}