fileSystemPlugin.writeFile()

BFChainAugust 11, 2023
  • Plugin
  • fileSystemPlugin
  • writeFile
Less than 1 minute

Write content.

import { fileSystemPlugin } from "@plaoc/plugin";
fileSystemPlugin.writeFile(options)

Parameters

Returns

A Promise that resolves to a WriteFileResult object.

Example

import { fileSystemPlugin } from "@plaoc/plugin";

const path = "xxx";
const data = "content";

fileSystemPlugin.writeFile({
  path, 
  data
});

Platform Compatibility

Property/Method/EventAndroidiOSDesktop-DevDesktop
writeFileX

See Also

FileSystemPlugin

Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v2.13.0