MCPcopy Index your code
hub / github.com/Effect-TS/effect / fileContent

Function fileContent

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

Source from the content-addressed store, hash-verified

301
302/** @internal */
303export const fileContent = (
304 name: string
305): Options.Options<readonly [path: string, content: Uint8Array]> =>
306 mapEffect(file(name, { exists: "yes" }), (path) =>
307 Effect.mapError(
308 InternalFiles.read(path),
309 (msg) => InternalValidationError.invalidValue(InternalHelpDoc.p(msg))
310 ))
311
312/** @internal */
313export const fileParse = (

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
fileFunction · 0.70

Tested by

no test coverage detected