File size: 175 Bytes
5ae7e18
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
const fs = require('fs')

module.exports = (path) => {
  return new Promise((resolve, reject) => {
    fs.readFile(path, (_error, data) => {
      resolve(data)
    })
  })
}