(filePath: string)
| 60 | function sortJson(fileToSort: string) { |
| 61 | // Lire le fichier JSON |
| 62 | const readFile = (filePath: string): Data => { |
| 63 | const file = fs.readFileSync(filePath, "utf8"); |
| 64 | return JSON.parse(file); |
| 65 | }; |
| 66 | |
| 67 | // Écrire dans le fichier JSON |
| 68 | const writeFile = (filePath: string, data: Data): void => { |
no outgoing calls
no test coverage detected