MCPcopy Create free account
hub / github.com/Effect-TS/effect / fileText

Function fileText

packages/cli/src/internal/options.ts:332–339  ·  view source on GitHub ↗
(
  name: string
)

Source from the content-addressed store, hash-verified

330
331/** @internal */
332export const fileText = (
333 name: string
334): Options.Options<readonly [path: string, content: string]> =>
335 mapEffect(file(name, { exists: "yes" }), (path) =>
336 Effect.mapError(
337 InternalFiles.readString(path),
338 (error) => InternalValidationError.invalidValue(InternalHelpDoc.p(error))
339 ))
340
341/** @internal */
342export const filterMap = dual<

Callers 1

fileParseFunction · 0.70

Calls 1

fileFunction · 0.70

Tested by

no test coverage detected