caselyjs
v0.1.1
Published
A minimal renaming tool for setting an uniform naming convetion accross all files, capable of renaming 100+ files in one go.
Downloads
15
Maintainers
Readme
🛠️ 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]
pathis 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
