MCPcopy Index your code
hub / github.com/Kong/httpsnippet / toPascalCase

Function toPascalCase

src/targets/csharp/restsharp/client.ts:23–28  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

21 }
22
23 function toPascalCase(str: string): string {
24 return str.replace(
25 /\w+/g,
26 word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase(),
27 );
28 }
29
30 push(`var client = new RestClient("${fullUrl}");`);
31 push(`var request = new RestRequest("", Method.${toPascalCase(method)});`);

Callers 1

client.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…