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

x/froebel/string.ts>transformCase

A strictly typed utility library.
Latest
variable transformCase
import { transformCase } from "https://deno.land/x/froebel@v0.23.2/string.ts";

Transform a variable name to targetCase

type

<T extends string, C extends StringCase>(str: T, targetCase: C) => C extends "snake" ? SnakeCase<T> : never