{"id":23086136,"url":"https://github.com/spookyuser/repototextrs","last_synced_at":"2025-04-03T15:32:34.570Z","repository":{"id":230039861,"uuid":"776817321","full_name":"spookyuser/RepoToTextRS","owner":"spookyuser","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-24T13:50:36.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T08:52:14.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/spookyuser.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-03-24T14:32:31.000Z","updated_at":"2024-06-24T13:50:39.000Z","dependencies_parsed_at":"2024-03-27T14:44:45.673Z","dependency_job_id":"e0d0af19-1329-4894-91f3-0fc437fcea25","html_url":"https://github.com/spookyuser/RepoToTextRS","commit_stats":null,"previous_names":["spookyuser/repototextrs"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spookyuser%2FRepoToTextRS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spookyuser%2FRepoToTextRS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spookyuser%2FRepoToTextRS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spookyuser%2FRepoToTextRS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spookyuser","download_url":"https://codeload.github.com/spookyuser/RepoToTextRS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247027706,"owners_count":20871575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-16T18:16:46.123Z","updated_at":"2025-04-03T15:32:34.542Z","avatar_url":"https://github.com/spookyuser.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RepoToText\n\nRepoToText is a Rust-based command-line tool that converts the structure and files of a repository into a text file probably for uploading to an llm.\n\nInspired by [this](https://github.com/JeremiahPetersen/RepoToText)\n\n## Features\n\n- Converts repository structure and files to text.\n- Allows you to specify include and exclude glob patterns for files.\n- Reads .gitignore file if present and excludes those files.\n- Allows you to specify the output file path.\n- If no output file path is provided, it generates a default one in the /tmp directory.\n- Prints the directory structure using the `tree` command.\n\n## Usage\n\nRun the `repototext` command with the following arguments:\n\n- `repo_path`: Path to the repository (required).\n- `output_path`: Path to the output text file (optional).\n- `package_name`: Name of the package to include in the output file headers (optional).\n- `include`: Glob pattern for including files (e.g., '**/*.rs') (optional).\n- `exclude`: Glob pattern for excluding files (e.g., 'node_modules/**') (optional).\n\nExample:\n\n```sh\ncargo run -- repo_path output_path package_name --include '**/*.rs' --exclude 'node_modules/**'\n```\n\n## Environment Variables\n\nYou can also specify include and exclude glob patterns through the following environment variables:\n\n- `REPOTOTEXT_INCLUDE_GLOBS`: Glob pattern for including files.\n- `REPOTOTEXT_EXCLUDE_GLOBS`: Glob pattern for excluding files.\n- `REPOTOTEXT_TREE_EXCLUDES`: Directories to exclude from the `tree` command.\n\n## Building\n\nTo build the project, run:\n\n```sh\ncargo build\n```\n\n## License\n\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspookyuser%2Frepototextrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspookyuser%2Frepototextrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspookyuser%2Frepototextrs/lists"}