{"id":24044652,"url":"https://github.com/dev-cetera/df_bulk_replace","last_synced_at":"2026-06-19T10:31:17.707Z","repository":{"id":251696945,"uuid":"838167492","full_name":"dev-cetera/df_bulk_replace","owner":"dev-cetera","description":"A command-line tool to perform bulk replacement of file names, folder names, and file contents within a specified directory.","archived":false,"fork":false,"pushed_at":"2025-07-12T23:12:29.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-08T06:03:22.090Z","etag":null,"topics":["cli","dart","file-management","package","rename","search-and-replace","tool","utility"],"latest_commit_sha":null,"homepage":"https://github.com/robmllze/df_bulk_replace","language":"Dart","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/dev-cetera.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["robmllze","dev-cetera"],"patreon":"RobertMollentze"}},"created_at":"2024-08-05T04:57:09.000Z","updated_at":"2025-10-01T12:12:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"573d5472-d7e3-4c84-8cd6-645fcda7ec3b","html_url":"https://github.com/dev-cetera/df_bulk_replace","commit_stats":null,"previous_names":["robmllze/df_bulk_replace","devcetra/df_bulk_replace","dev-cetera/df_bulk_replace"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dev-cetera/df_bulk_replace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-cetera%2Fdf_bulk_replace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-cetera%2Fdf_bulk_replace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-cetera%2Fdf_bulk_replace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-cetera%2Fdf_bulk_replace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-cetera","download_url":"https://codeload.github.com/dev-cetera/df_bulk_replace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-cetera%2Fdf_bulk_replace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34528134,"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-19T02:00:06.005Z","response_time":61,"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":["cli","dart","file-management","package","rename","search-and-replace","tool","utility"],"created_at":"2025-01-08T23:32:36.960Z","updated_at":"2026-06-19T10:31:17.684Z","avatar_url":"https://github.com/dev-cetera.png","language":"Dart","funding_links":["https://github.com/sponsors/robmllze","https://github.com/sponsors/dev-cetera","https://patreon.com/RobertMollentze","https://www.buymeacoffee.com/dev_cetera","https://www.patreon.com/c/RobertMollentze"],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://www.buymeacoffee.com/dev_cetera\" target=\"_blank\"\u003e\u003cimg align=\"right\" src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" height=\"48\"\u003e\u003c/a\u003e\n\u003ca href=\"https://discord.gg/gEQ8y2nfyX\" target=\"_blank\"\u003e\u003cimg align=\"right\" src=\"https://raw.githubusercontent.com/dev-cetera/.github/refs/heads/main/assets/icons/discord_icon/discord_icon.svg\" height=\"48\"\u003e\u003c/a\u003e\n\nDart \u0026 Flutter Packages by dev-cetera.com \u0026 contributors.\n\n[![sponsor](https://img.shields.io/badge/sponsor-grey?logo=github-sponsors)](https://github.com/sponsors/dev-cetera)\n[![patreon](https://img.shields.io/badge/patreon-grey?logo=patreon)](https://www.patreon.com/c/RobertMollentze)\n[![pub](https://img.shields.io/pub/v/df_bulk_replace.svg)](https://pub.dev/packages/df_bulk_replace)\n[![tag](https://img.shields.io/badge/tag-v0.1.7-purple?logo=github)](https://github.com/dev-cetera/df_bulk_replace/tree/v0.1.7)\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_bulk_replace/main/LICENSE)\n\n---\n\n[![banner](https://github.com/dev-cetera/df_safer_dart/blob/v0.1.7/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)\n\n\u003c!-- BEGIN _README_CONTENT --\u003e\n\n## Summary\n\nA command-line tool to perform bulk replacement of file names, folder names, and file contents within a specified directory.\n\n## How It Works\n\n1.  The script scans the specified directory recursively and finds all files and folders.\n2.  It replaces the occurrences of the `replace` pattern with the `with` pattern in the file contents, file names, and folder names.\n3.  The script supports using capture groups in the replacement pattern using double curly braces `{{}}`.\n\n## Installing\n\n```sh\ndart pub global activate df_bulk_replace\n```\n\n## Uninstalling\n\n```sh\ndart pub global deactivate df_bulk_replace\n```\n\n## Examples\n\n```sh\n# Basic replacment.\nbulkreplace --input test --replace \"foo\" --with \"bar\"\nbulkreplace -i test -r \"bar\" -w \"foo\"\nbulkreplace -i test -r \"replace_me\" -w \"vervang_my\"\nbulkreplace -i test -r \"vervang_my\" -w \"replace_me\" # change back\nbulkreplace -i test -r \"replace_me\" -w \"vervang_my\" \u0026\u0026 bulkreplace -i test -r \"vervang_my\" -w \"replace_me\"\n\n# Using handlebars.\nbulkreplace -i test -r \"replace_me_(\\\\w)_(\\\\w)_(\\\\w)\" -w \"replace_me_{{2}}_{{1}}_{{0}}\" --no-file-names --no-folder-names\n\n# Whitelisting or blacklisting files.\nbulkreplace -i test -r \"foo\" -w \"bar\" --blacklisted-files \"blacklist_me_1.txt, blacklist_me_2.txt\"\nbulkreplace -i test -r \"foo\" -w \"bar\" --whitelisted-files \"whitelist_me_1.txt, whitelist_me_2.txt\"\n\n# Whitelisting or blacklisting folders.\nbulkreplace -i test -r \"foo\" -w \"bar\" --blacklisted-folders \"_blacklist_me\" -v\nbulkreplace -i test -r \"foo\" -w \"bar\" --whitelisted-folders \"_whitelist_me\" -v\n\n# For those familiar with RegExp, you can use regular expressions and capture groups.\nbulkreplace --i . --replace \"my_project_template(.*)\" --with \"hello_world{{1}}\"\n```\n\n## Arguments\n\nPrints help: **-h** or **--help**\n\nSpecifies the directory to search in: **-i** or **--input**\n\nSpecifies the regex pattern to replace: **-r** or **--replace**\n\nSpecifies the replacement string: **-w** or **--with**\n\nEnables verbose output: **-v** or **--verbose**\n\nRuns the program in dry-run mode (no files will be renamed): **--dry-run**\n\nSpecifies whether to replace file names or not. Default is true: **-f** or **--file-names**\n\nSpecifies whether to replace folder names or not. Default is true: **-d** or **--folder-names**\n\nSpecifies whether to replace file content or not. Default is true: **-c** or **--content**\n\nSpecifies whether to replace content in binary files or not. Default is false: **-b** or **--binary-content**\n\nInclude file name patterns to whitelist. Separate multiple patterns with commas: **--whitelisted-files**\n\nInclude file name patterns to blacklist. Separate multiple patterns with commas: **--blacklisted-files**\n\nSpecifies whether to add the default file whitelist or not. Default is true: **--default-whitelisted-files**\n\nSpecifies whether to add the default file blacklist or not. Default is true: **--default-blacklisted-files**\n\nInclude folder name patterns to whitelist. Separate multiple patterns with commas: **--whitelisted-folders**\n\nInclude folder name patterns to blacklist. Separate multiple patterns with commas: **--blacklisted-folders**\n\n\u003c!-- END _README_CONTENT --\u003e\n\n---\n\n☝️ Please refer to the [API reference](https://pub.dev/documentation/df_bulk_replace/) for more information.\n\n---\n\n## 💬 Contributing and Discussions\n\nThis is an open-source project, and we warmly welcome contributions from everyone, regardless of experience level. Whether you're a seasoned developer or just starting out, contributing to this project is a fantastic way to learn, share your knowledge, and make a meaningful impact on the community.\n\n### ☝️ Ways you can contribute\n\n- **Buy me a coffee:** If you'd like to support the project financially, consider [buying me a coffee](https://www.buymeacoffee.com/dev_cetera). Your support helps cover the costs of development and keeps the project growing.\n- **Find us on Discord:** Feel free to ask questions and engage with the community here: https://discord.gg/gEQ8y2nfyX.\n- **Share your ideas:** Every perspective matters, and your ideas can spark innovation.\n- **Help others:** Engage with other users by offering advice, solutions, or troubleshooting assistance.\n- **Report bugs:** Help us identify and fix issues to make the project more robust.\n- **Suggest improvements or new features:** Your ideas can help shape the future of the project.\n- **Help clarify documentation:** Good documentation is key to accessibility. You can make it easier for others to get started by improving or expanding our documentation.\n- **Write articles:** Share your knowledge by writing tutorials, guides, or blog posts about your experiences with the project. It's a great way to contribute and help others learn.\n\nNo matter how you choose to contribute, your involvement is greatly appreciated and valued!\n\n### ☕ We drink a lot of coffee...\n\nIf you're enjoying this package and find it valuable, consider showing your appreciation with a small donation. Every bit helps in supporting future development. You can donate here: https://www.buymeacoffee.com/dev_cetera\n\n\u003ca href=\"https://www.buymeacoffee.com/dev_cetera\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" height=\"40\"\u003e\u003c/a\u003e\n\n## 🧑‍⚖️ License\n\nThis project is released under the [MIT License](https://raw.githubusercontent.com/dev-cetera/df_bulk_replace/main/LICENSE). See [LICENSE](https://raw.githubusercontent.com/dev-cetera/df_bulk_replace/main/LICENSE) for more information.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-cetera%2Fdf_bulk_replace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-cetera%2Fdf_bulk_replace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-cetera%2Fdf_bulk_replace/lists"}