MCPcopy Create free account
hub / github.com/MigoXLab/coderio / toKebabName

Function toKebabName

src/nodes/process/structure/utils.ts:249–256  ·  view source on GitHub ↗
(node: Protocol)

Source from the content-addressed store, hash-verified

247
248 // Convert component name to kebab-case for file naming
249 const toKebabName = (node: Protocol): string => {
250 const source = node.data.kebabName || node.data.name || node.id || 'component';
251 const kebabName = toKebabCase(source);
252 if (!node.data.kebabName) {
253 node.data.kebabName = kebabName;
254 }
255 return kebabName;
256 };
257
258 const traverse = (node?: Protocol | null, parentPath?: string, level = 0): void => {
259 if (!node || !node.data) {

Callers 1

traverseFunction · 0.85

Calls 1

toKebabCaseFunction · 0.90

Tested by

no test coverage detected