Closed Arro closed 1 year ago
fs-extra
currently adds promise support to the existing callback API (we added this before fs/promises
was a thing). Since fs-extra uses graceful-fs under the hood, we can't use fs/promises
as graceful-fs doesn't yet support it (see https://github.com/isaacs/node-graceful-fs/issues/160). If you want this functionality, we suggest using fs/promises
directly.
fs-extra
version: 10.1.0Attempting to write a stream to a file using
fs-extra
, my code looks like this:Nowadays, I can do it with node.js:
Seeing as
fs-extra
is attempting to be "node.js' fs, but enhanced", should this be added tofs-extra
?