eTech-Source / universal-fs

Allows a client or server to access the file system in the current codebase or a different one.
https://www.universal-fs.etech.network
Other
2 stars 0 forks source link

Support for universal-fs without a server #19

Open eTech-Source opened 1 month ago

eTech-Source commented 1 month ago

Why

Imagine you need to read a file on a simple a static website. This website does not have a dedicated backend so you can't use node:fs. But wait! you can just use universal-fs; however you cannot. Even universal-fs requires a server to scaffold you api onto.

How

universal-fs in your build script add a onetime npx universal-fs cache call. This will generate a .fs/fs.html file. Note that only read methods will be supported.

When

In version 1.2.

eTech-Source commented 1 month ago

This feature is being pushed back. Development of the feature is still in progress. However, due to performance and quality control issues it needs to be pushed back for a later release. Thanks for using universal-fs!