Convert a string literal to screaming-snake-case.
This can be useful when, for example, converting a camel-cased object property to a screaming-snake-cased SQL column name.
import type {ScreamingSnakeCase} from 'type-fest';const someVariable: ScreamingSnakeCase<'fooBar'> = 'FOO_BAR'; Copy
import type {ScreamingSnakeCase} from 'type-fest';const someVariable: ScreamingSnakeCase<'fooBar'> = 'FOO_BAR';
Convert a string literal to screaming-snake-case.
This can be useful when, for example, converting a camel-cased object property to a screaming-snake-cased SQL column name.