项目作者: chidiebereokpoechi

项目描述 :
Bulk file renamer for typescript and javascript files
高级语言: TypeScript
项目地址: git://github.com/chidiebereokpoechi/renamulon.git
创建时间: 2020-09-06T01:26:29Z
项目社区:https://github.com/chidiebereokpoechi/renamulon

开源协议:MIT License

下载


Renamulon

What is it?

This is a bulk file renamer for nodejs projects with typescript or javascript

Usage

  1. npx renamulon <directory> [-f format] [-x extensions] [-r] [-d] [-g]
  2. # EXAMPLE
  3. npx renamulon src -f snake -x ts tsx --dry -r

Options:

  • <directory> specifies the directory to start the file renaming. REQUIRED
  • --format, -f is an option that specifies the format style for the file names. The options are kebab, camel, pascal, and snake. REQUIRED
  • --ext, -x is an option that specifies the list of file extensions to include in the renaming. The default value is js jsx ts tsx.

Flags:

  • --dry, -d is an optional flag. No changes will be made on the system if true. The default value is false.
  • --use-git, -g is an optional flag. Renaming will be done with git mv instead of mv if true. The default value is false.
  • --remove-dots, -r is an optional flag. It specifies whether dots in file names should be left untouched or formatted out (This does not include the dot before the file extension). The efault value is false.

Testing

  1. npm run test

Build

  1. npm run build