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

Method readFileSync

lib/internal/vfs/file_handle.js:174–177  ·  view source on GitHub ↗

* Reads the entire file synchronously. * @param {object|string} [options] Options or encoding * @throws {ERR_METHOD_NOT_IMPLEMENTED} When not implemented by subclass

(options)

Source from the content-addressed store, hash-verified

172 * @throws {ERR_METHOD_NOT_IMPLEMENTED} When not implemented by subclass
173 */
174 readFileSync(options) {
175 this.#checkClosed('read');
176 throw new ERR_METHOD_NOT_IMPLEMENTED('readFileSync');
177 }
178
179 /**
180 * Writes data to the file (replacing content).

Callers

nothing calls this directly

Calls 1

#checkClosedMethod · 0.95

Tested by

no test coverage detected