const readFilePromise = () => { return new Promise((resolve, reject) => { fs.readFile(filePath, options, (err, data) => { if (err) return reject(err) resolve(data) }) }) }