jvilk / BrowserFS

BrowserFS is an in-browser filesystem that emulates the Node JS filesystem API and supports storing and retrieving files from various backends.
Other
3.06k stars 216 forks source link

Support latest Node FS API #373

Open james-pre opened 9 months ago

james-pre commented 9 months ago

1d47844 Finally added a type assignment from the FS module of @types/node. BrowserFS is assignable to Node v10 and below. We must support up to Node v20.

Rather than changing the internals, it would be easy to implement some of these functions in the compatibility layer (e.g. with rmSync, we could easily write code that uses existing BFS internal code rather than implementing new internals for it).

james-pre commented 8 months ago

Use https://github.com/zen-fs/core/issues/24