Closed juancampa closed 9 months ago
Interesting. I think I'd wait for it to become more stable; it would be a lot of churn to keep up with an experimental API.
Would you consider accepting a PR for this functionality? I think I could just shim most of the existing functions.
Maybe time for this now? :)
it'd definitely be super useful, currently I have to promisify each of the node fs
methods
@RiccardoBiosas I'm currently working on converting the internals to using promises and fixing tests so after that adding a compatibility layer should be very easy.
In case your interested @RiccardoBiosas @sixman9 @juancampa @dbrock:
Added in c8b960b
There's a new (albeit experimental) promise API. I just wanted to create an issue and discuss if it's worth implementing in BrowserFS. Any thoughts?
https://nodejs.org/api/fs.html#fs_fs_promises_api
Thanks for this great module btw.