Skip to content

Feature Request: Add toPascalCaseKeys, toKebabCaseKeys, and toConstantCaseKeys #1982

Closed

Description

@benedictleejh

While es-toolkit contains camelCase, snakeCase, pascalCase, kebabCase, and constantCase, it currently only has toCamelCaseKeys and toSnakeCaseKeys. It would be good to have the equivalent object keys conversion functions for pascalCase, kebabCase, and constantCase, if only for completeness reasons.

In terms of real world usage, I know DOMPurify uses constant case for part of its config object keys (and one of my packages manually does the conversion for both the type and runtime for now).

Activity

  1. changed the title [-]Feature Request: Add `toPascalCaseKeys` and `toConstantCaseKeys`[/-] [+]Feature Request: Add `toPascalCaseKeys`, `toKebabCaseKeys`, and `toConstantCaseKeys`[/+] on Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions