Create fsHelper
This commit is contained in:
parent
d6731d1676
commit
afce2994bd
7
be/src/fsHelper.ts
Normal file
7
be/src/fsHelper.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import * as fs from "fs";
|
||||
|
||||
export const saveJsonToDisk = (content: {}) => {
|
||||
const outputPath = `../database.json`;
|
||||
|
||||
fs.writeFileSync(outputPath, JSON.stringify(content));
|
||||
}
|
Loading…
Reference in a new issue