You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMO, the part about the FS is not quite right and there are missing parts.
The title of subsection "Manipulating Files" should be something like "working with file system" because the content is just not about file it's also about folder.
Adding a intorudction of fs/fs/promises + what mean file system ... like introduction of test runner
Include glob paterns
more examples with cjs/esm
Remaining question:
Should we put ESM example as first ?
Should we put fs/promises as first.
How to handle difference between fs and fs/promises
I ended up here after being confused by the doc page about reading files. I thought ESM was the official standard format, so I was surprised to see CJS presented first. Also, the page states that there are three ways to read a file (apart from using streams), but does not explain when to use which.
Activity
AugustinMauroy commentedon Nov 23, 2024
cc @nodejs/fs What is your opinion on that ?
hb20007 commentedon Mar 2, 2026
I ended up here after being confused by the doc page about reading files. I thought ESM was the official standard format, so I was surprised to see CJS presented first. Also, the page states that there are three ways to read a file (apart from using streams), but does not explain when to use which.