asentir JS FS Agregar a archivo

const fs = require('fs');

fs.appendFileSync('message.txt', 'data to append');
Gentle Grebe