# prettify

`function` in `utils` · v0.6.1

<https://docs.seedcord.org/packages/utils/0.6.1/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`.
