toPascalCase

import { toPascalCase } from "jsr:@ende/text";

function

function toPascalCase(input: string): string

Converts a string into PascalCase.

input: string

The string that is going to be converted into PascalCase

Returns

The string as PascalCase

Example: Usage

import { toPascalCase } from "@ende/text/to-pascal-case";
import { assertEquals } from "@ende/assert";

assertEquals(toPascalCase("deno is awesome"), "DenoIsAwesome");

Source