Writer is designed to write data into a given path in an asynchronous manner.
&mut self in async napi methods should be marked as unsafe
Close this writer.
const writer = await op.writer("path/to/file");await writer.write(Buffer.from("hello world"));await writer.close(); Copy
const writer = await op.writer("path/to/file");await writer.write(Buffer.from("hello world"));await writer.close();
Create a writable stream from the underlying writer.
Optional
Write bytes into this writer.
Writer is designed to write data into a given path in an asynchronous manner.