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.18.0/string.ts";

Variables

Transforms a variable name to camel case.

Upper-case first letter of string.

Strictly typed String.toLowerCase().

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 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().