node/deps/npm/node_modules/@npmcli/fs/lib/fs.js
npm team 7e6e593701
deps: upgrade npm to 7.21.1
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>
2021-08-28 10:41:53 -04:00

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)