Frontmatter
| id | 7940 |
| title | Feat: Add Neo.snakeToCamel utility function |
| state | Closed |
| labels | enhancementairefactoring |
| assignees | tobiu |
| createdAt | Nov 30, 2025, 12:19 AM |
| updatedAt | Nov 30, 2025, 12:26 AM |
| githubUrl | https://github.com/neomjs/neo/issues/7940 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 7931 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 30, 2025, 12:26 AM |
Feat: Add Neo.snakeToCamel utility function
tobiu assigned to @tobiu on Nov 30, 2025, 12:19 AM
tobiu added parent issue #7931 on Nov 30, 2025, 12:19 AM

tobiu
Nov 30, 2025, 12:26 AM
Input from Gemini 2.5:
✦ I have implemented the
Neo.snakeToCamelutility function.Deliverables Completed
- Implement
snakeToCamelinsrc/core/Util.mjs: A static utility methodsnakeToCamel(value)has been added, converting snake_case strings to camelCase.- Borrow into
Neoobject:Neo.core.Util.snakeToCamelis now aliased asNeo.snakeToCamelinsrc/Neo.mjs, making it globally accessible.- Update
ai/mcp/client/Client.mjs: The internalsnakeToCamelmethod has been removed, and theClientnow uses the newNeo.snakeToCamelutility for dynamic tool proxy creation.- Update JSDoc: All relevant JSDoc comments have been updated.
tobiu closed this issue on Nov 30, 2025, 12:26 AM
To provide a dedicated and semantically clear utility for converting snake_case strings to camelCase, and to maintain consistency within the core framework''s naming conversion utilities (
Neo.camel,Neo.decamel), a newsnakeToCamelfunction will be introduced. This function will reside insrc/core/Util.mjsand be borrowed into the globalNeoobject for easy access.Deliverables
snakeToCamelinsrc/core/Util.mjs: Create a static utility methodsnakeToCamel(value)that converts a snake_case string to camelCase.Neoobject: AddNeo.core.Util.snakeToCamelasNeo.snakeToCamelinsrc/Neo.mjs.ai/mcp/client/Client.mjs: RefactorNeo.ai.mcp.client.Clientto remove its internalsnakeToCamelmethod and use the newNeo.snakeToCamelutility.