MCPcopy Create free account
hub / github.com/api-platform/website / readFile

Function readFile

pwa/update-i18n.ts:62–65  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

60function 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 => {

Callers 6

sortJsonFunction · 0.85
getAllEventsFunction · 0.85
getEventContentFunction · 0.85
speakers.tsFile · 0.85
conferences.tsFile · 0.85
getLegalDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected