MCPcopy
hub / github.com/vercel-labs/just-bash / readFile

Method readFile

packages/just-bash/src/fs/interface.ts:130–130  ·  view source on GitHub ↗

* Read the contents of a file as decoded text. Default encoding is utf8; * pass an explicit text encoding (`"ascii"`, etc.) to override. * * For raw bytes (encoding `"binary"` / `"latin1"`), use readFileBytes * — the opaque return type forces callers to decide whether to forward

(
    path: string,
    options?: ReadFileOptions | BufferEncoding,
  )

Source from the content-addressed store, hash-verified

128 * @throws Error if file doesn't exist or is a directory
129 */
130 readFile(
131 path: string,
132 options?: ReadFileOptions | BufferEncoding,
133 ): Promise<string>;

Callers 15

readFileMethod · 0.65
operators.test.tsFile · 0.65
readFileMethod · 0.65
Sandbox.test.tsFile · 0.65
nl.tsFile · 0.65
executeFunction · 0.65

Implementers 4

ReadWriteFspackages/just-bash/src/fs/read-write-f
OverlayFspackages/just-bash/src/fs/overlay-fs/o
InMemoryFspackages/just-bash/src/fs/in-memory-fs
MountableFspackages/just-bash/src/fs/mountable-fs

Calls

no outgoing calls

Tested by

no test coverage detected