MCPcopy Index your code
hub / github.com/ccxt/ccxt / pascalToSnake

Function pascalToSnake

ts/src/static_dependencies/starknet/utils/encode.ts:288–294  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

286 * ```
287 */
288export const pascalToSnake = (text: string) =>
289 /[a-z]/.test(text)
290 ? text
291 .split(/(?=[A-Z])/)
292 .join('_')
293 .toUpperCase()
294 : text;

Callers

nothing calls this directly

Calls 2

splitMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…