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

Method writeFile

lib/internal/vfs/file_handle.js:648–650  ·  view source on GitHub ↗

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

(data, options)

Source from the content-addressed store, hash-verified

646 * @returns {Promise<void>}
647 */
648 async writeFile(data, options) {
649 this.writeFileSync(data, options);
650 }
651
652 /**
653 * Gets file stats synchronously.

Callers

nothing calls this directly

Calls 1

writeFileSyncMethod · 0.95

Tested by

no test coverage detected