happy-opfs
    Preparing search index...

    Function isOPFSSupported

    • Checks if the Origin Private File System (OPFS) is supported in the current environment. OPFS requires a secure context (HTTPS or localhost) and browser support.

      Returns boolean

      true if OPFS is supported, false otherwise.

      1.0.0

      isSyncChannelSupported for checking sync channel support

      if (isOPFSSupported()) {
      // Use OPFS APIs
      const result = await readFile('/path/to/file');
      } else {
      console.warn('OPFS is not supported in this environment');
      }