# prettify

`function` in `utils` · v0.4.0

<https://docs.seedcord.org/packages/utils/0.4.0/functions/prettify>

Converts a string from any common naming convention to human-readable format. Accepts camelCase, PascalCase, snake_case, and kebab-case input.

```ts
prettify(
    key: string,
    opts?: PrettifyOptions
): string
```

Converts a string from any common naming convention to human-readable format. Accepts camelCase, PascalCase, snake_case, and kebab-case input.

Parameters.

- `key` `string` — The string to convert
- `opts?` `PrettifyOptions` — Optional configuration

Returns `string`.
