es-tooling / module-replacements

A manifest of JS modules and their more modern/active replacements
MIT License
533 stars 30 forks source link

`fs-extra` native replacement #126

Open bluwy opened 3 months ago

bluwy commented 3 months ago

Most of the fs-extra APIs can be replaced with native fs calls these days especially on later node versions. Eg some migration I made: https://github.com/vitejs/vite/pull/17782

We probably needs a migration guide from fs-extra to fs mapping its APIs: https://github.com/jprichardson/node-fs-extra?tab=readme-ov-file#methods. However, I’ve not found a solid guide yet elsewhere, except for https://ar.al/2021/03/07/fs-extra-to-fs/ but it’s 3 years ago.

43081j commented 3 months ago

we could try document it in the replacement doc. we haven't done that so far but fs-extra does need a bit of a migration guide i think

we can still follow the doc template but have an extra section

walter-0 commented 1 month ago

I'd like to start adding the applicable fs-extra modules into the preferred manifest

bluwy commented 1 month ago

@ziebam has a lot of experience migrating fs-extra to fs and could help review the changes