quotely / utils /image-load-path.js
Ditzzy AF
feat(README.md): enhance README with detailed project info and quick start guide
ff883f5
raw
history blame contribute delete
175 Bytes
const fs = require('fs')
module.exports = (path) => {
return new Promise((resolve, reject) => {
fs.readFile(path, (_error, data) => {
resolve(data)
})
})
}