{"id":18511727,"url":"https://github.com/jeremywrnr/modname","last_synced_at":"2025-05-14T11:32:05.904Z","repository":{"id":56884205,"uuid":"47309681","full_name":"jeremywrnr/modname","owner":"jeremywrnr","description":"recursively batch rename files w/ regex","archived":false,"fork":false,"pushed_at":"2023-06-07T00:26:18.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-20T22:02:58.382Z","etag":null,"topics":["file-manager","gem","regex","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/jeremywrnr.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":"2015-12-03T05:14:47.000Z","updated_at":"2021-09-15T20:05:11.000Z","dependencies_parsed_at":"2024-11-06T15:51:28.801Z","dependency_job_id":null,"html_url":"https://github.com/jeremywrnr/modname","commit_stats":{"total_commits":69,"total_committers":2,"mean_commits":34.5,"dds":0.02898550724637683,"last_synced_commit":"52ae8443b39a1b5ffe6cb2e60a8b3275bf8764de"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremywrnr%2Fmodname","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremywrnr%2Fmodname/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremywrnr%2Fmodname/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremywrnr%2Fmodname/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeremywrnr","download_url":"https://codeload.github.com/jeremywrnr/modname/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254131536,"owners_count":22019946,"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":["file-manager","gem","regex","ruby"],"created_at":"2024-11-06T15:29:34.723Z","updated_at":"2025-05-14T11:32:05.645Z","avatar_url":"https://github.com/jeremywrnr.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"modname\n=======\n\n\n[![Gem Version](https://badge.fury.io/rb/modname.svg)](https://badge.fury.io/rb/modname)\n[![MIT](https://img.shields.io/npm/l/alt.svg?style=flat)](http://jeremywrnr.com/mit-license)\n\n\n## about\n\na versatile file naming tool.\n\neasily rename groups of files with regex replacements.\n\nalso supports easily changing file extensions.\n\n\n## setup\n\n    [sudo] gem install modname\n\n## usage\n\n```\nmodname [options] \u003cmatch\u003e [transform]\n\nmodname | rename files, fast\n     -e | change file extensions\n     -f | force run; don't pre-check\n     -r | run modname recursively\n     -h | show more help, examples\n\ncommands\n  file names\n    atch] [trans] =\u003e modify a pattern in filenames\n    atch] =\u003e delete a pattern from filenames\n\n  extensions (-e)\n    [old] [new] =\u003e move file extensions, \u003cold\u003e to \u003cnew\u003e\n    [ext] =\u003e lowercase one extension type (EXT =\u003e ext)\n    nil =\u003e move all extensions to lower case\n\nexamples\n  file names\n    modname hello =\u003e deletes 'hello' from all filenames\n    modname hello byebye =\u003e replace 'hello' with byebye\n\n  extensions (-e)\n    modname -e txt md =\u003e move all txt files to markdown\n    modname -e mov mp4 =\u003e move all mov files to mp4\n\nNote: \u003crequired\u003e [optional]\n```\n\n### examples\n\n    modname -e jpeg jpg # change all jpeg file exts to jpg\n    modname -e # change all file extensions to lowercase\n    modname '(.*)' 'jeremy \\1' # use grouping to prepend string\n\n\n## development / testing\n\nTo build from source, first install the project dependencies. This project\nuses `bundler`, the standard ruby gem management system. If you don't have it,\ntry running `gem install bundler`. Once that is done:\n\n    bundle install\n\nNow, we should be able to build the gem locally. This will build the local\nmodname gem and link it in your path, so you can playing around with `modname`.\n\n    rake build\n\nThis uses `rspec` and `rake` to run a suite of unit tests. To run the suite:\n\n    rake\n\n\n## todos\n\n- only try to rename filenames, not folders on recursive calls\n- figure out whats up with the extension globbing\n- apply optionally to directories as well\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremywrnr%2Fmodname","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeremywrnr%2Fmodname","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremywrnr%2Fmodname/lists"}