src/files.js
function readFile(path, fileName) {
  return new Promise((resolve, reject) => {
    fs.readFile(`${path}/${fileName}`, 'utf8', (err, content) => {
      if (err) {
        return reject(err)
      }

      return resolve(content)
    })
  })
}
function readFile(path, fileName) {
  return new Promise((resolve, reject) => {
    fs.readFile(`${path}/${fileName}`, 'utf8', (err, content) => {
      if (err) {
        return reject(err)
      }

      return resolve(content)
    })
  })
}
function readFile ( path , fileName ) { return new Promise ( ( resolve , reject ) => { fs . readFile ( ` ${ path } ${ fileName } ` , 'utf8' , ( err , content ) => { if ( err ) { return reject ( err ) } return resolve ( content ) } ) } ) }
readFile fs promise wrapped
@param {string} path
@param {string} fileName
readFile fs promise wrapped