How to create appending writeStream in Node.js How to create appending writeStream in Node.js node.js node.js

How to create appending writeStream in Node.js


There is a createWriteStream method right below it.

fs.createWriteStream(path, [options]) Returns a new WriteStream object (See Writable Stream).

options is an object with the following defaults:

{ 'flags': 'a', 'encoding': null, 'mode': 0666}