mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
Add the following case conversion methods to the Bun global object: - Bun.camelCase() - Convert to camelCase - Bun.pascalCase() - Convert to PascalCase - Bun.snakeCase() - Convert to snake_case - Bun.kebabCase() - Convert to kebab-case - Bun.constantCase() - Convert to CONSTANT_CASE - Bun.dotCase() - Convert to dot.case - Bun.capitalCase() - Convert to Capital Case - Bun.trainCase() - Convert to Train-Case These utility functions are implemented in Zig for performance and handle: - Multiple word delimiters (spaces, hyphens, underscores, etc.) - Case transitions (camelCase, PascalCase detection) - Numbers adjacent to letters - UTF-8 string encoding 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>