Class

FSFileWrite

FSFileWrite()

Contains methods that write to file
Constructor

# new FSFileWrite()

View Source fs-file.write.class.ts, line 6

Classes

FSFileWrite

Methods

# async appendFile(data, options)

Asynchronously append data to a file, creating the file if it does not yet exist.
Parameters:
Name Type Description
data string or Buffer to append
options

View Source fs-file.write.class.ts, line 42

# createWriteStream(options)

Creates standart node fs WriteStream for this path.
Parameters:
Name Type Description
options node fs.createWriteStream options

View Source fs-file.write.class.ts, line 34

# async json(obj)

Serialize onject to JSON and writes it to file
Parameters:
Name Type Description
obj object to serialize

View Source fs-file.write.class.ts, line 27

# async txt(txt)

Writes string to file
Parameters:
Name Type Description
txt content to write

View Source fs-file.write.class.ts, line 14