MCPcopy Index your code
hub / github.com/jvilk/BrowserFS / readFileSync

Method readFileSync

src/core/file_system.ts:237–237  ·  view source on GitHub ↗

* **Supplemental**: Synchronously reads the entire contents of a file. * @param encoding If non-null, the file's contents should be decoded * into a string using that encoding. Otherwise, if encoding is null, fetch * the file's contents as a Buffer.

(fname: string, encoding: string | null, flag: FileFlag)

Source from the content-addressed store, hash-verified

235 * the file's contents as a Buffer.
236 */
237 readFileSync(fname: string, encoding: string | null, flag: FileFlag): any;
238 /**
239 * **Supplemental**: Asynchronously writes data to a file, replacing the file
240 * if it already exists.

Callers 15

generateEmscriptenTestFunction · 0.65
runtestFunction · 0.65
readFile.tsFile · 0.65
renameSyncMethod · 0.65
renameSyncMethod · 0.65
openSyncMethod · 0.65

Implementers 10

LockedFSsrc/generic/locked_fs.ts
MountableFileSystemsrc/backend/MountableFileSystem.ts
WorkerFSsrc/backend/WorkerFS.ts
IsoFSsrc/backend/IsoFS.ts
UnlockedOverlayFSsrc/backend/OverlayFS.ts
FolderAdaptersrc/backend/FolderAdapter.ts
ZipFSsrc/backend/ZipFS.ts
XmlHttpRequestsrc/backend/XmlHttpRequest.ts
AsyncMirrorsrc/backend/AsyncMirror.ts
DropboxFileSystemsrc/backend/Dropbox.ts

Calls

no outgoing calls

Tested by

no test coverage detected