{"id":16531385,"url":"https://github.com/marcbachmann/codemod","last_synced_at":"2026-06-08T11:01:39.762Z","repository":{"id":66338143,"uuid":"79357297","full_name":"marcbachmann/codemod","owner":"marcbachmann","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T08:43:53.000Z","size":166,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-01T12:34:52.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/marcbachmann.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":"2017-01-18T16:05:32.000Z","updated_at":"2017-01-18T16:06:19.000Z","dependencies_parsed_at":"2024-10-19T04:36:04.159Z","dependency_job_id":null,"html_url":"https://github.com/marcbachmann/codemod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcbachmann/codemod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fcodemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fcodemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fcodemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fcodemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcbachmann","download_url":"https://codeload.github.com/marcbachmann/codemod/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fcodemod/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34059157,"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-06-08T02:00:07.615Z","response_time":111,"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":[],"created_at":"2024-10-11T18:08:41.746Z","updated_at":"2026-06-08T11:01:39.746Z","avatar_url":"https://github.com/marcbachmann.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codemod - tooling\n\nA small tool to automate pull requests and code changes\n\n\n## Execute with a variable file\n1. Set up the variables\n  - create a variable file named `variables.txt`, one directory per line\n\n    ```\n    repos/livingdocs-server upfrontIO/livingdocs-server\n    repos/nzz-api nzzdev/livingdocs-api\n    repos/livingdocs-editor upfrontIO/livingdocs-editor\n    repos/nzz-editor nzzdev/livingdocs-editor\n    ```\n\n2. execute a command using\n   - `./execdir git status`\n   - or `./execdir -c hub clone $VAR1 .`\n   - you can use any space separated variable, just postfix `$VAR` with the index (zero based index) on a specific line\n\n   - have fun with the command aliases in `./run`\n\n\n## Pipe dirs to ./eachdir\nInstead of creating a variables file, you can also pipe variables to the command.\n\n```\n$ find repos/* -d | ./eachdir -r pwd\n/Users/marcbachmann/Development/upfrontIO/codemod/repos/livingdocs-editor\n/Users/marcbachmann/Development/upfrontIO/codemod/repos/livingdocs-server\n/Users/marcbachmann/Development/upfrontIO/codemod/repos/nzz-api\n/Users/marcbachmann/Development/upfrontIO/codemod/repos/nzz-editor\n```\n\n\n## Usage\n```\nUsage: ./exec [-r] [-c] \u003ccommand\u003e\n\n-r         don't use formatted output\n-c         use a 'bash -c' like syntax to execute commands \u0026 interpolate variables\n\u003ccommand\u003e  the command to execute in the directory\n\nThe absolute path to the directory is available as `$DIR`.\nThe current working directory is available as `$ROOT`\n```\n\n## Screenshot\n![example][example]\n[example]: docs/example.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcbachmann%2Fcodemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcbachmann%2Fcodemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcbachmann%2Fcodemod/lists"}