Node.js 8 has a new utility function: util.promisify(). It converts a callback-based function to a Promise-based one. util.promisify() in action # If you hand the path of a file to the following script, it prints its contents. // echo.js const {promisify} = require('util'); const fs = require('fs'); const readFileAsync = promisify(fs.readFile); // (A) const filePath = process.argv[2]; readFileAsy