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

Function processFilePipe

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

Source from the content-addressed store, hash-verified

1622
1623 // Pipeline syntax
1624 const processFilePipe = (path: string) =>
1625 readFile(path)
1626 .andThen((content) => parseContent(content))
1627 .catchAll((error: string, message) =>
1628 logger.error(`[${error}Error] Error processing ${path}:`, message).as(null),
1629 );
1630
1631 // Test successful case
1632 const errorLogs: string[][] = [];

Callers 1

Calls 4

parseContentFunction · 0.85
catchAllMethod · 0.65
andThenMethod · 0.65
asMethod · 0.65

Tested by

no test coverage detected