Skip to main content
Module

std/text/mod.ts>toPascalCase

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

Converts a string into PascalCase.

Examples

Example 1

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

toPascalCase("deno is awesome"); // "DenoIsAwesome"

Parameters

input: string

The string that is going to be converted into PascalCase

Returns

string

The string as PascalCase