zen-fs-remotestoragejs
v1.2.2
Published
RemoteStorage.js backend for zen-fs - distributed file system interface
Downloads
407
Maintainers
Readme
zen-fs-remotestoragejs
A zen-fs backend for RemoteStorage.js — a distributed file system interface backed by RemoteStorage-compatible storage (including various cloud providers).
Install
npm install zen-fs-remotestoragejsDepends on
@zenfs/core(>=2.3.3).
Usage
import {
RemoteStorageFileSystem,
createRemoteStorageFileSystem,
} from 'zen-fs-remotestoragejs';
// Recommended factory:
const fs = createRemoteStorageFileSystem({ href, token });
// Or directly:
const fs2 = new RemoteStorageFileSystem({ href, token });Exports
RemoteStorageFileSystem(also the default export)createRemoteStorageFileSystem(config)createUniversalSyncFileSystem,adaptFileSystem- Error types:
RemoteStorageError,FileNotFoundError,DirectoryNotFoundError,FileExistsError,AuthenticationError,PermissionDeniedError - Path utilities:
normalizePath,joinPath,getBasename,getParentPath,isValidPath, ...
License
MIT
