refren-0.1.0 is not a library.
refren: refactor/rename
The refren
command facilitates refactoring/renaming in cases when you want to rename a concept that appears in your
code rather than a specific variable or class. So, if you decide that "JS example" should be renamed to
"javascript dummy", refren
will do it for you, aware of different code styles.
Simple example
$ cat src/lib.js
const JS_EXAMPLE_STATIC_CONST = 44
module.exports =
$ cat src/lib.js | refren 'JS example' 'javascript dummy'
const JAVASCRIPT_DUMMY_STATIC_CONST = null
module.exports =
Using together with the find
command
refren
can be easily used together with the find
command:
$ find src -name "*.js" | xargs refren "JS example" "javascript dummy"