848 B
848 B
Node File System Adapter
This is a small library that uses Node Web Streams and Blobs to implement FileSystemDirectoryHandle, allowing you to use or develop libraries compatible with both node and web with file system access.
Note that this library cannot provide the same security as the browser implementation,
since malicious code can detect and use the node filesystem API directly.
getDirectoryHandle and getFileHandle will still reject paths with seperators,
preventing normal code from accessing files above the directory handle,
but the class constructors (which are not present in the web filesystem api) have no such limitations.