Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/text/mod.ts>toCamelCase

The Deno Standard Library
Latest
function toCamelCase
import { toCamelCase } from "https://deno.land/std@0.224.0/text/mod.ts";

Converts a string into camelCase.

Examples

Example 1

import { toCamelCase } from "https://deno.land/std@0.224.0/text/case.ts";

toCamelCase("deno is awesome"); // "denoIsAwesome"

Parameters

input: string

The string that is going to be converted into camelCase

Returns

string

The string as camelCase