Create fsHelper

This commit is contained in:
Nikhil Nawgiri 2024-10-26 18:47:24 +02:00
parent d6731d1676
commit afce2994bd

7
be/src/fsHelper.ts Normal file
View file

@ -0,0 +1,7 @@
import * as fs from "fs";
export const saveJsonToDisk = (content: {}) => {
const outputPath = `../database.json`;
fs.writeFileSync(outputPath, JSON.stringify(content));
}