@likecoin/epub-ts
    Preparing search index...

    Class Archive

    Handles Unzipping a requesting files from an Epub Archive

    Index

    Constructors

    Properties

    urlCache: Record<string, string>
    zip: JSZip | undefined

    Methods

    • Create a Url from an unarchived item

      Parameters

      • url: string
      • Optionaloptions: { base64?: boolean }
        • Optionalbase64?: boolean

          use base64 encoding or blob url

      Returns Promise<string>

      url promise with Url string

    • Get a base64 encoded result from Archive by Url

      Parameters

      • url: string
      • OptionalmimeType: string

      Returns Promise<string> | undefined

      base64 encoded

    • Get a Blob from Archive by Url

      Parameters

      • url: string
      • OptionalmimeType: string

      Returns Promise<Blob> | undefined

    • Get Text from Archive by Url

      Parameters

      • url: string
      • Optional_encoding: string

      Returns Promise<string> | undefined

      text content

    • Open an archive

      Parameters

      • input: string | ArrayBuffer | Blob
      • OptionalisBase64: boolean

        tells JSZip if the input data is base64 encoded

      Returns Promise<JSZip>

      zipfile

    • Load and Open an archive

      Parameters

      • zipUrl: string
      • OptionalisBase64: boolean

        tells JSZip if the input data is base64 encoded

      Returns Promise<JSZip>

      zipfile

    • Request a url from the archive

      Parameters

      • url: string

        a url to request from the archive

      • Optionaltype: string

        specify the type of the returned result

      Returns Promise<unknown>

    • Revoke Temp Url for a archive item

      Parameters

      • url: string

        url of the item in the archive

      Returns void