{"id":18596944,"url":"https://github.com/focusaurus/slugger","last_synced_at":"2025-05-16T13:33:05.085Z","repository":{"id":141311908,"uuid":"132911058","full_name":"focusaurus/slugger","owner":"focusaurus","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-12T20:22:51.000Z","size":50,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T18:02:57.377Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/focusaurus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-05-10T14:22:31.000Z","updated_at":"2020-09-23T09:17:36.000Z","dependencies_parsed_at":"2024-08-26T17:00:31.061Z","dependency_job_id":null,"html_url":"https://github.com/focusaurus/slugger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focusaurus%2Fslugger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focusaurus%2Fslugger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focusaurus%2Fslugger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focusaurus%2Fslugger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/focusaurus","download_url":"https://codeload.github.com/focusaurus/slugger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254538468,"owners_count":22087867,"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-11-07T01:26:22.824Z","updated_at":"2025-05-16T13:33:05.062Z","avatar_url":"https://github.com/focusaurus.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slugger\n\nA unix filesystem utility to rename files using a restricted url-safe character subset.\n\n## Why slug your file paths?\n\n* Avoid bugs and vulnerabilities due to poor handling of problematic characters including spaces, quotes, etc\n* Simplify things by sticking with lowercase\n* Allow paths to be typed without keyboard gymnastics\n* Allow easy tab completion\n\n## Usage\n \nSlugger reads filesystem paths from standard input, one per line. In the default mode, it just prints out the slugged versions. If you pass the `--rename` command line argument, slugger will do the file renames.\nTypically the input comes from commands that output lists of files like `find`, `ls`, etc.\n\n- Preview slugged names without doing anything: `find . -type f | slugger`\n- Do the actual renaming: `find . -type f | slugger --rename`\n\n## How files are renamed\n\n- Convert to lowercase\n- Trim leading and trailing whitespace\n- Remove repeated dashes\n- Do a \"unidecode\" to translate mostly to ASCII\n- Convert all whitespaces to dash\n- Delete anything else\n\n## Behavior notes\n\n- slugger will not clobber existing files. If the slugged file already exists, it will abort and exit with an error code.\n- slugger is safe to run on already-slugged files. It will no-op and exit success (it's idempotent).\n\n## How correct and stable is it?\n\nUh, it has some decent unit tests but it's brand new and should be considered unreliable for now.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffocusaurus%2Fslugger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffocusaurus%2Fslugger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffocusaurus%2Fslugger/lists"}