diff --git a/be/src/fsHelper.ts b/be/src/fsHelper.ts new file mode 100644 index 0000000..ffc15fd --- /dev/null +++ b/be/src/fsHelper.ts @@ -0,0 +1,7 @@ +import * as fs from "fs"; + +export const saveJsonToDisk = (content: {}) => { + const outputPath = `../database.json`; + + fs.writeFileSync(outputPath, JSON.stringify(content)); +}