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

Function fileContent

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
fileFunction · 0.70

Tested by

no test coverage detected