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!
npm install caselyjs// index.js
import { casely } from 'caselyjs';
casely.config({
  path: 'src'
});
casely.execute();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.
Made with ❤️ by codezaura