https://github.com/raviqqe/rnm
Rename everything in {camel,kebab,shout,snake,etc.}cases in your code base
https://github.com/raviqqe/rnm
Last synced: 2 months ago
JSON representation
Rename everything in {camel,kebab,shout,snake,etc.}cases in your code base
- Host: GitHub
- URL: https://github.com/raviqqe/rnm
- Owner: raviqqe
- License: mit
- Created: 2020-10-07T01:55:00.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-11-10T21:33:44.000Z (4 months ago)
- Last Synced: 2025-11-10T23:26:01.677Z (4 months ago)
- Language: Go
- Homepage:
- Size: 275 KB
- Stars: 20
- Watchers: 1
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- go-awesome - rnm - 代码重构辅助工具 (开源类库 / 开发辅助包)
- go-awesome - rnm - code refactoring help (Open source library / Development Aid Package)
README
# rnm
[](https://github.com/raviqqe/rnm/actions)
[](https://codecov.io/gh/raviqqe/rnm)
[](LICENSE)
Yet another [`fastmod`](https://github.com/facebookincubator/fastmod) alternative.
Replace all occurrences of a name to another name in `{camel,kebab,shout,snake,...}`cases in your codes!
## Features
- Support for different case styles
- See `rnm --help` to list them all.
- Automatic pluralization
- File renaming
- Massive speed
## Install
```sh
go install github.com/raviqqe/rnm@latest
```
## Usage
```sh
rnm 'foo bar' 'baz qux'
```
For more information, see `rnm --help`.
## Examples
Given a file named `foo_bar.go`:
```go
const FOO_BAR = 42
type FooBar struct {
fooBar int
}
func (f FooBar) fooBar() {
println("foo bar")
}
```
When you run `rnm 'foo bar' 'baz qux'`, you would see a file named `baz_qux.go` with contents:
```go
const BAZ_QUX = 42
type BazQux struct {
bazQux int
}
func (f BazQux) bazQux() {
println("baz qux")
}
```
## License
[MIT](LICENSE)