fileSystemPlugin.writeFile()
PluginfileSystemPluginwriteFileLess than 1 minute
Write content.
import { fileSystemPlugin } from "@plaoc/plugins";
fileSystemPlugin.writeFile(options)
Parameters
- options: Options for writing the file. The value is a WriteFileOptions object.
Returns
A Promise that resolves to a WriteFileResult object.
Example
import { fileSystemPlugin } from "@plaoc/plugins";
const path = "xxx";
const data = "content";
fileSystemPlugin.writeFile({
path,
data
});
Platform Compatibility
Property/Method/Event | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
writeFile | ✅ | ✅ | ✅ | X |
See Also
Powered by Waline v2.15.7