DEV Community

Cover image for JavaScript Web APIs Series: File and Storage APIs

JavaScript Web APIs Series: File and Storage APIs

Adams Adebayo on January 31, 2024

Virtually everything in the software world is a kind of file, and storage is to files what our brain is to our body. This means that files and stor...
Collapse
 
lexlohr profile image
Alex Lohr

If you want to use the file system API like you would use node:fs, there is a package @solid-primitives/filesystem that exports makeWebAccessFileSystem, which enables exactly that - even framework agnostic. However, it also gives you a wrapper that allows to make the access reactive, i.e. automatically update open items on write access within Solid.js.

Collapse
 
olodocoder profile image
Adams Adebayo

Thank you for this, Alex!

Collapse
 
lexlohr profile image
Alex Lohr

I'm glad you like it. I spent 2 week's afternoons to write it.