Skip to content

WriteFile

Write content to file.

API

Return

  • Promise
ParameterDescriptionTypeDescription
successWhether write was successfulbooleantrue for success, false for failure
dataReason for write failure, or file content and path on successany

Options

ParameterDescriptionTypeDefault
pathFile path to write tostringundefined
contentContent to writestringRequired

Released under the MIT License.