MCPcopy Index your code
hub / github.com/nodejs/node / writeFileSync

Method writeFileSync

lib/internal/vfs/file_system.js:271–274  ·  view source on GitHub ↗

* Writes a file synchronously. * @param {string} filePath The path to write * @param {Buffer|string} data The data to write * @param {object} [options] Options

(filePath, data, options)

Source from the content-addressed store, hash-verified

269 * @param {object} [options] Options
270 */
271 writeFileSync(filePath, data, options) {
272 const providerPath = this.#toProviderPath(filePath);
273 this[kProvider].writeFileSync(providerPath, data, options);
274 }
275
276 /**
277 * Appends to a file synchronously.

Callers

nothing calls this directly

Calls 1

#toProviderPathMethod · 0.95

Tested by

no test coverage detected