Node provides several utilities that make async code cleaner and more controllable — converting old callback APIs to Promises, cancelling operations, and coordinating multiple async tasks.
promisify — convert callback APIs to Promises
{ promisify } ;
fs ;
readFileAsync = (fs.);
data = (, );
