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

Method writeFileSync

lib/internal/vfs/file_handle.js:195–198  ·  view source on GitHub ↗

* Writes data to the file synchronously (replacing content). * @param {Buffer|string} data The data to write * @param {object} [options] Options

(data, options)

Source from the content-addressed store, hash-verified

193 * @param {object} [options] Options
194 */
195 writeFileSync(data, options) {
196 this.#checkClosed('write');
197 throw new ERR_METHOD_NOT_IMPLEMENTED('writeFileSync');
198 }
199
200 /**
201 * Gets file stats.

Callers

nothing calls this directly

Calls 1

#checkClosedMethod · 0.95

Tested by

no test coverage detected