MCPcopy Create free account
hub / github.com/Snowflyt/tinyeffect / processFileGen

Function processFileGen

test/README.example.spec.ts:1614–1621  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

1612 {
1613 // Generator syntax
1614 const processFileGen = (path: string) =>
1615 effected(function* () {
1616 const content = yield* readFile(path);
1617 return yield* parseContent(content);
1618 }).catchAll(function* (error: string, message) {
1619 yield* logger.error(`[${error}Error] Error processing ${path}:`, message);
1620 return null;
1621 });
1622
1623 // Pipeline syntax
1624 const processFilePipe = (path: string) =>

Callers 1

Calls 3

effectedFunction · 0.90
parseContentFunction · 0.85
catchAllMethod · 0.65

Tested by

no test coverage detected