{"id":25168698,"url":"https://github.com/tahahachana/snakit","last_synced_at":"2026-02-17T01:33:20.339Z","repository":{"id":275396503,"uuid":"925744031","full_name":"TahaHachana/snakit","owner":"TahaHachana","description":"Command-line tool that recursively renames all files and folders within a specified directory to snake_case.","archived":false,"fork":false,"pushed_at":"2025-02-02T17:59:33.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T19:45:17.338Z","etag":null,"topics":["clap","cli","rust","snakecase"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/snakit","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/TahaHachana.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-01T16:37:55.000Z","updated_at":"2025-02-02T18:04:54.000Z","dependencies_parsed_at":"2025-02-02T08:24:04.202Z","dependency_job_id":"0130e909-674e-40c5-90df-bef41c6fcb85","html_url":"https://github.com/TahaHachana/snakit","commit_stats":null,"previous_names":["tahahachana/snakit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TahaHachana/snakit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TahaHachana%2Fsnakit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TahaHachana%2Fsnakit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TahaHachana%2Fsnakit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TahaHachana%2Fsnakit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TahaHachana","download_url":"https://codeload.github.com/TahaHachana/snakit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TahaHachana%2Fsnakit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29529460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T00:57:22.232Z","status":"ssl_error","status_checked_at":"2026-02-17T00:54:25.811Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["clap","cli","rust","snakecase"],"created_at":"2025-02-09T07:18:54.390Z","updated_at":"2026-02-17T01:33:20.317Z","avatar_url":"https://github.com/TahaHachana.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snakit\n\nsnakit is a command-line tool written in Rust that recursively renames all files and directories in a given directory to snake_case.\n\n## Features\n\n- **Recursive Renaming**: Process files and subdirectories recursively.\n- **Dry-Run Mode**: Preview changes without modifying your filesystem.\n- **Hidden File Support**: Optionally include or skip hidden files and directories.\n- **Verbose Output**: See detailed logs of the renaming process.\n- **Collision Handling**: If a renamed file or folder already exists, a numeric suffix is added to ensure uniqueness.\n\n## Installation\n\n```bash\ncargo install snakit\n```\n\n## Usage\n\nYou can execute snakit using the following syntax:\n\n```bash\nsnakit \u003cpath\u003e [OPTIONS]\n```\n\n### Command-Line Arguments\n\n- `\u003cpath\u003e`  \n  The path to the directory in which files and folders will be renamed.\n\n### Options\n\n- `-d, --dry-run`  \n  Enable dry run mode. Displays the changes that would be made without applying them.\n\n- `--include-hidden`  \n  Include hidden files and directories in the renaming process.  \n  *(By default, hidden files and directories are skipped.)*\n\n- `-v, --verbose`  \n  Enable verbose mode to show detailed renaming information for each file and folder processed.\n\n### Example\n\nPerform a dry-run on a directory:\n\n```bash\nsnakit ./my_directory --dry-run --verbose\n```\n\nRename all files and folders in a directory:\n\n```bash\nsnakit ./my_directory --verbose\n```\n\n## How It Works\n\nsnakit reads the specified directory and processes each file and folder:\n\n1. It checks if the file or folder should be processed (skips symlinks and – by default – hidden files).\n2. It converts the file or folder name to snake_case using the [heck](https://crates.io/crates/heck) crate.\n3. If the snake_case name is different from the original, it renames the file or folder.\n4. If a name collision occurs, it automatically appends a numeric suffix to generate a unique name.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- [clap](https://github.com/clap-rs/clap) for command-line argument parsing.\n- [anyhow](https://github.com/dtolnay/anyhow) for error handling.\n- [heck](https://github.com/withoutboats/heck) for case conversion.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftahahachana%2Fsnakit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftahahachana%2Fsnakit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftahahachana%2Fsnakit/lists"}