MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / toCamel

Function toCamel

frontend/packages/common/src/hooks/http.ts:10–12  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

8}
9
10function toCamel(s: string) {
11 return s.replace(/(_\w)/g, (k) => k[1].toUpperCase())
12}
13
14function toSnake(s: string) {
15 return s.replace(/([A-Z])/g, '_$1').toLowerCase()

Callers 1

keysToCamelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected