Refactor your software using programming language independent string replacement.
Helps by renaming directories, filenames and file contents in a case-preserving manner.
How does it work
Imagine we want to rename a library called
It will first normalize
["some", "thing"] and
["another", "name"], and build patterns on this.
Then, when matching and replacing, it will memorize the casing pattern and separator on e.g.
"Some-thing" to replace it with the same convention, like so:
This works for:
- file contents
Binaries are just copied, and warnings are currently shown for png and jpg files containing logo or icon.
pip install rebrand
rebrand <OLD> <NEW> <LOCATION> (optional: <DESTINATION>) # e.g. rebrand ancient modern .
Implement radically faster matching
- More options (such as disabling image warnings, verbosity, ignore patterns)