kebabier

1.0.0 • Public • Published

kebabier

What is this?

Kebabier is a minimal, zero dependency CLI tool that helps refactor JavaScript/TypeScript projects to use kebab-case naming convention for files & folders.

Why?

Well, because macOS is a case-insensitive file system by default. So when renaming myComponent.js into MyComponent.js, Git won't pick up the change in the file name.

Locally, everything may work just fine. but, other systems, for example, your GitHub Actions CI, will break complaining MyComponent.js doesn't exist 😕.

People really encounter this issue! look

Other than that, there are many advantages of using kebab-case naming convention.

How to Use?

npx kebabier <directory name>

Kebabier will kebab-case all ts(x)/js(x) files, directories, and sub-directories 🚀. It will also update all import (including dynamic) & require to use the correct path.
When inside a git project, it will also re-index the files to make sure git will pick up the changes.

Example Usage

npx kebabier src

Will convert all files and directories inside src directory.

Package Sidebar

Install

npm i kebabier

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

7.98 kB

Total Files

8

Last publish

Collaborators

  • guybarsheshet