happy-opfs • Docs
happy-opfs / writeFile
function writeFile(
filePath,
contents,
options?): AsyncVoidIOResult
Writes content to a file at the specified path.
Parameter | Type | Description |
---|---|---|
filePath |
string |
The path of the file to write to. |
contents |
WriteFileContent |
The content to write to the file. |
options ? |
WriteOptions |
Optional write options. |
AsyncVoidIOResult
A promise that resolves to an AsyncIOResult
indicating whether the file was successfully written.