Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/froebel/string.ts

A strictly typed utility library.
Go to Latest
import * as froebel from "https://deno.land/x/froebel@v0.21.3/string.ts";

Variables

Transforms a variable name to camel case.

Upper-case first letter of string.

Transforms a variable name to kebab case.

Strictly typed String.toLowerCase().

Transforms a variable name to pascal case.

Returns str prefixed with prefix. Optionally, allows prefxing in camel case, i.e. prefix('foo', 'bar', 'camel') => 'fooBar', or snake case, i.e. prefix('foo', 'bar', 'snake') => 'foo_bar'.

Transforms a variable name to screaming snake case.

Transforms a variable name to snake case.

Returns str suffixed with suffix. Same case and type behavior as prefix.

Surrounds the str with surrounding. surrounding must have an even length.

Transform a variable name to targetCase

Lower-case first letter of string

Strictly typed String.toUpperCase().