Skip to content

Latest commit

 

History

238 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rnm

GitHub Action Codecov License

Yet another 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

go install github.com/raviqqe/rnm@latest

Usage

rnm 'foo bar' 'baz qux'

For more information, see rnm --help.

Examples

Given a file named foo_bar.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:

const BAZ_QUX = 42

type BazQux struct {
  bazQux int
}

func (f BazQux) bazQux() {
  println("baz qux")
}

License

MIT

About

Rename everything in {camel,kebab,shout,snake,etc.}cases in your code base

Resources

Stars

21 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages