If the JSON file is static, require() is better because require() caches the file. On the other hand, if the JSON file changes, fs.readFileSync ...
確定! 回上一頁