Files
bun.sh/src/bun.js
Claude Bot d7cf65eb0e feat: implement case-changing utility methods (fixes #15087)
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>
2025-09-13 01:06:33 +00:00
..
2025-09-09 20:41:10 -07:00
2025-09-09 20:41:10 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00