Closed ikokostya closed 4 years ago
I agree completely. It made sense at the time, but Node has matured a lot.
However someone else is going to have to create a PR that does this.
However someone else is going to have to create a PR that does this.
I created PR https://github.com/baudehlo/node-fs-ext/pull/90. Please take a look.
Problem
Now
node-fs-ext
overridesfs
module, i.e. adds new constants to it. Because Node.js modules are cached, other modules got implicitly redefinedfs
module.Also, since Node.js 11
constants
are not extensible anymore https://github.com/baudehlo/node-fs-ext/issues/76 and deprecated since Node.js 6. So, there is no way to get them in new versions of Node.js (only import binding file directly).Proposal
Instead
node-fs-ext
can export ownconstants
and doesn't touch corefs
module:Related Issues
https://github.com/baudehlo/node-fs-ext/issues/81