promisify node callbacks
npm install ay-promisify
const promisify = require('ay-promisify');
const readFile = promisify(require('fs').readFile);
readFile('index.js', 'utf8')
.then(fileContent => console.log(fileContent))
.catch(err => console.log(err))