Skip to main content
Module

x/froebel/string.ts>screamingSnake

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

Transforms a variable name to screaming snake case.

Examples

Example 1

snake('fooBar') // 'FOO_BAR'

type

<T extends string>(str: T) => ScreamingSnakeCase<T>