Skip to content

codezaura/caselyjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛠️ caselyjs

caselyjs is a CLI and programmatic tool that helps you rename files and folders in bulk using a consistent naming convention like kebab-case, camelCase, or PascalCase.

Say goodbye to manually renaming 100+ files in your project!


📦 Installation

npm install caselyjs

🚀 Usage

Minimum setup you need to start with caselyjs

// index.js
import { casely } from 'caselyjs';

casely.config({
  path: 'src'
});

casely.execute();

⚙️ Config Options

Default Options

casely.config({
  path: 'src',
  case: 'kebab',
  file: ['js', 'jsx'],
  operate: 'partial'
})

Note

path is a required property.
Don't need to pass any path as 'src/**/*', recursive is supported by default.

currently, supporting three cases as 'kebab' | 'camel' | 'pascal'
default file extensions ['js', 'jsx'], can include more extenstion in the array.
eg.

casely.config({
 // ...previous
  file: ['js', 'jsx', 'ts', 'tsx']
})

default operate mode is 'partial', which modifies only files.
operate has two variants as 'partial' | 'full'
full will allow you to rename folders too.

Author

Made with ❤️ by codezaura

About

caselyjs - a powerful tool for renaming 100+ files to eliminate manual process.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published