MCPcopy
hub / github.com/apify/crawlee / snakeCaseToCamelCase

Function snakeCaseToCamelCase

packages/utils/src/internals/general.ts:151–159  ·  view source on GitHub ↗
(snakeCaseStr: string)

Source from the content-addressed store, hash-verified

149 * @ignore
150 */
151export function snakeCaseToCamelCase(snakeCaseStr: string): string {
152 return snakeCaseStr
153 .toLowerCase()
154 .split('_')
155 .map((part, index) => {
156 return index > 0 ? part.charAt(0).toUpperCase() + part.slice(1) : part;
157 })
158 .join('');
159}
160
161/**
162 * Traverses DOM and expands shadow-root elements (created by custom components).

Callers 1

general.test.tsFile · 0.90

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…