MCPcopy Create free account
hub / github.com/nodejs/node / readFile

Method readFile

lib/internal/vfs/file_handle.js:164–167  ·  view source on GitHub ↗

* Reads the entire file. * @param {object|string} [options] Options or encoding * @returns {Promise }

(options)

Source from the content-addressed store, hash-verified

162 * @returns {Promise<Buffer|string>}
163 */
164 async readFile(options) {
165 this.#checkClosed('read');
166 throw new ERR_METHOD_NOT_IMPLEMENTED('readFile');
167 }
168
169 /**
170 * Reads the entire file synchronously.

Callers

nothing calls this directly

Calls 1

#checkClosedMethod · 0.95

Tested by

no test coverage detected