happy-opfs
    Preparing search index...

    Function readBlobFile

    • Reads the content of a file as a File object (Blob with name).

      Parameters

      • filePath: string

        The absolute path of the file to read.

      Returns AsyncIOResult<File>

      A promise that resolves to an AsyncIOResult containing the File object.

      1.0.0

      (await readBlobFile('/path/to/file.txt'))
      .inspect(file => console.log(file.name, file.size, file.type));