UNPKG

file-system-access

Version:

File System Access API implementation (ponyfill) with pluggable storage adapters via IndexedDB, Cache API, in-memory etc.

8 lines (7 loc) 314 B
export const support = { adapter: { cache: !!(globalThis.CacheStorage && globalThis.caches instanceof CacheStorage), native: typeof globalThis.navigator?.storage?.getDirectory === 'function', sandbox: typeof window !== 'undefined' && typeof window.webkitRequestFileSystem === 'function' } }