cieslarmichal / smart-rename

A simple utility for bulk renaming using search and replace.

Home Page:https://www.npmjs.com/package/smart-rename

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smart rename

A simple utility for bulk renaming using search and replace.

Installation

npm i -g smart-rename

Example with directory

smart-rename --path . --from user --to customer
smart-rename --path . --from User --to Customer
Before:

After:

Example with git stage

smart-rename --gitStage --from user --to customer
Before:

After:

Flags

Usage: smart-rename [options]

Options:
  -p, --path                  Directory path (search includes directory path and all recursive paths inside)
  -g, --gitStage              Whether to use paths from git stage
  -f, --from                  Replace from
  -t, --to                    Replace to
  -i, --includeFilesContents  Whether to also replace all occurences in files contents

About

A simple utility for bulk renaming using search and replace.

https://www.npmjs.com/package/smart-rename

License:MIT License


Languages

Language:TypeScript 99.2%Language:JavaScript 0.8%