Read a file with fs.readFileSync
const data = require('fs').readFileSync('file.txt', 'utf-8');
Check if a path exists and is a directory
Add a timeout to fetch requests using AbortController
Get the directory of the currently running script
Parse JSON without try-catch crashing your app