Skip to content

AppendFile

Append data to file.

API

Return

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

Options

ParameterDescriptionTypeDefault
pathFile path to append tostringundefined
contentContent to appendstringRequired

Example

Released under the MIT License.