[Vuejs]-Load json if exists and append data instead of recreating and overriding the json file

3👍

Synchronously, you can append to files using fs.appendFileSync

const fs = require('fs');
fs.appendFileSync(filename, json);

Leave a comment