# Is there an alternative of StringCases.jl that changes string cases?

**URL:** <https://discourse.julialang.org/t/is-there-an-alternative-of-stringcases-jl-that-changes-string-cases/40994>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [June 8, 2020, 2:14pm UTC](https://discourse.julialang.org/t/is-there-an-alternative-of-stringcases-jl-that-changes-string-cases/40994 "2020-06-08T14:14:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![singularitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/singularitti/32/17678_2.png) [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Post date:** [June 8, 2020, 2:14pm UTC](https://discourse.julialang.org/t/is-there-an-alternative-of-stringcases-jl-that-changes-string-cases/40994/1 "2020-06-08T14:14:53Z")

</div>

I want to switch strings between camelCase, PascalCase, snake\_case, etc. I found one package [StringCases.jl](https://github.com/djsegal/StringCases.jl) but it is old and seems to be unmaintained. Is there any alternative?

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [June 8, 2020, 2:16pm UTC](https://discourse.julialang.org/t/is-there-an-alternative-of-stringcases-jl-that-changes-string-cases/40994/2 "2020-06-08T14:16:45Z")

</div>

Seems like the easiest path might be to make a PR to update that package. @djsegal is pretty active and will likely review and accept an update. There’s even a PR to start from: [Start upgrading StringCases for Julia \>= 1.0 by tencnivel · Pull Request #3 · djsegal/StringCases.jl · GitHub](https://github.com/djsegal/StringCases.jl/pull/3).

---

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [June 10, 2020, 4:28pm UTC](https://discourse.julialang.org/t/is-there-an-alternative-of-stringcases-jl-that-changes-string-cases/40994/3 "2020-06-10T16:28:05Z")

</div>

Just made a PR to add it to the `General` packages list:

- [New package: StringCases v0.1.0 by JuliaRegistrator · Pull Request #16162 · JuliaRegistries/General · GitHub](https://github.com/JuliaRegistries/General/pull/16162)

Guess I didn’t maintain it cause people told me it was an unneeded package at the time?

Glad it found some people who wanted it though 🙂

---

<div class="post-metadata">

**Author:** ![acxz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/acxz/32/16759_2.png) [@acxz](https://discourse.julialang.org/u/acxz)\
**Post date:** [June 16, 2024, 5:12am UTC](https://discourse.julialang.org/t/is-there-an-alternative-of-stringcases-jl-that-changes-string-cases/40994/4 "2024-06-16T05:12:23Z")

</div>

I know this is an old post, but I believe my reply would be useful to anyone else that comes across this post.

I have created a package [GitHub - acxz/StringCases.jl: Define, validate, and convert string cases](https://github.com/acxz/StringCases.jl) which has more features for handling the conversion between string cases, both predefined and custom.

The name choice may be poor in lieu of the existing registered package, but when I created the package I thought the name was a proper representation of the package. Feel free to take a look at the [Example Usage section of the README.md](https://github.com/acxz/StringCases.jl/tree/main?tab=readme-ov-file#example-usage) for a concise example.

---

<div class="post-metadata">

**Author:** ![acxz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/acxz/32/16759_2.png) [@acxz](https://discourse.julialang.org/u/acxz)\
**Post date:** [July 13, 2024, 4:31pm UTC](https://discourse.julialang.org/t/is-there-an-alternative-of-stringcases-jl-that-changes-string-cases/40994/5 "2024-07-13T16:31:33Z")

</div>

@StefanKarpinski @djsegal do you two think that the package I have created can supersede yours (@djsegal) in the General Registry? It is more powerful and handles the cases that already exists in the older StringCases.jl.

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [July 13, 2024, 5:41pm UTC](https://discourse.julialang.org/t/is-there-an-alternative-of-stringcases-jl-that-changes-string-cases/40994/6 "2024-07-13T17:41:36Z")

</div>

Yes, I think we can do that. I haven’t seen @djsegal around for a while but let’s see if he chimes in. If not we can replace the old version with yours. The procedure is to give it the same uuid and a new major version number. Ping me here or on slack in a few weeks and we can do it.

---

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [July 18, 2024, 1:11am UTC](https://discourse.julialang.org/t/is-there-an-alternative-of-stringcases-jl-that-changes-string-cases/40994/7 "2024-07-18T01:11:44Z")

</div>

Sure?

Guess I’m a little scared about a lpad scenario with people who use the original package?

But doesn’t matter to me. The API seems a little complicated? I realize all the functionality is there, but is there a way to use some of the previous function names
