mirror of
https://github.com/nodejs/node.git
synced 2025-05-14 20:02:04 +00:00

PR-URL: https://github.com/nodejs/node/pull/39904 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
9 lines
377 B
JavaScript
9 lines
377 B
JavaScript
const fs = require('fs')
|
|
const promisify = require('@gar/promisify')
|
|
|
|
// this module returns the core fs module wrapped in a proxy that promisifies
|
|
// method calls within the getter. we keep it in a separate module so that the
|
|
// overridden methods have a consistent way to get to promisified fs methods
|
|
// without creating a circular dependency
|
|
module.exports = promisify(fs)
|