* Create a readFileAsync wrapper module * Use the readFileAsync wrapper module instead of fs.promises.readFile * Fix require path in test
7 lines
223 B
JavaScript
7 lines
223 B
JavaScript
const fs = require('fs')
|
|
const util = require('util')
|
|
|
|
// This is faster than using `fs.promises.readFile` for the time being
|
|
// See: https://github.com/nodejs/node/issues/37583
|
|
module.exports = util.promisify(fs.readFile)
|