Skip to content

feat: support CamelCase to kebab-case conversion#72

Closed
peroman86 wants to merge 1 commit intodreamerslab:masterfrom
peroman86:master
Closed

feat: support CamelCase to kebab-case conversion#72
peroman86 wants to merge 1 commit intodreamerslab:masterfrom
peroman86:master

Conversation

@peroman86
Copy link

@peroman86 peroman86 commented Jul 18, 2018

Searched for CamelCase to dash-case and didn't find it, so I added this ability to this repo.

Before:
inflection.transform( 'AllJobs', [ 'underscore', 'dasherize' ]); // === 'all-jobs'

Now:
inflection.kebabize('AllJobs'); // === all-jobs

@peroman86
Copy link
Author

@ben-lin hi,
does anyone maintain this repo?

@p-kuen p-kuen changed the title CamelCast to kebab-case feat: support CamelCase to kebab-case conversion Apr 14, 2021
@NullVoxPopuli
Copy link

maybe change-case will be more sufficient? https://runkit.com/nullvoxpopuli/64381760e1828400085cfffc

@p-kuen
Copy link
Collaborator

p-kuen commented Jan 2, 2025

Please use the change-case or case-anything package for this use case. Otherwise please recreate this PR to use a single function instead of underscoring and replacing underscores with dashes afterwords. I will close this PR in the meantime.

@p-kuen p-kuen closed this Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants