---
title: "Discussion on \"Convert a string to camelCase using this function in Javascript.\" | Hashnode"
description: "Discussion on \"Convert a string to camelCase using this function in Javascript.\". Ever needed to convert a string to camelCase? I found an interesting code snippet while exploring the open-source Supabase repository. Here’s the method they use:\nfunction featureToCamelCase(feature: Feature) {\n  return feature\n    .replace(/:/g, '_'..."
url: "https://hashnode.com/posts/convert-a-string-to-camelcase-using-this-function-in-javascript/66aaadb2a11ccbbaad7e1878"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Convert a string to camelCase using this function in Javascript.](https://ramunarasinga.hashnode.dev/convert-a-string-to-camelcase-using-this-function-in-javascript?utm_source=hashnode&utm_medium=feed)

Ever needed to convert a string to camelCase? I found an interesting code snippet while exploring the open-source Supabase repository. Here’s the method they use: function featureToCamelCase(feature: Feature) { return feature .replace(/:/g, '\_'...

Jul 31, 2024 · 3 min read · ramunarasinga.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#supabase](https://hashnode.com/tag/supabase)
-   [#camelcase](https://hashnode.com/tag/camelcase)
-   [#regex](https://hashnode.com/tag/regex)

## Written by

[Ramu Narasinga](https://hashnode.com/@ram11)

@ram11

  
[View profile](https://hashnode.com/@ram11)

I am a FOSS enthusiast who explores patterns in the Github wilderness.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
