Skip to content

Latest commit

 

History

History
84 lines (58 loc) · 2.69 KB

archive.md

File metadata and controls

84 lines (58 loc) · 2.69 KB

Archive ⇐ Input

Handles Unzipping a requesting files from an Epub Archive

Kind: global class
Extends: Input

archive.createInstance()

Create JSZip instance

Kind: instance method of Archive

archive.open(input, [encoding]) ⇒ Promise.<any>

Open an archive

Kind: instance method of Archive
Returns: Promise.<any> - zipfile

Param Type Description
input string | ArrayBuffer
[encoding] string tells JSZip if the input data is base64 encoded

archive.openUrl(zipUrl, [isBase64]) ⇒ Promise.<any>

Load and Open an archive

Kind: instance method of Archive
Returns: Promise.<any> - zipfile

Param Type Description
zipUrl string
[isBase64] boolean tells JSZip if the input data is base64 encoded

archive.getBlob(url, [mimeType]) ⇒ Promise.<(Blob|null)>

Get a Blob from Archive by URL

Kind: instance method of Archive

Param Type
url string
[mimeType] string

archive.getText(url) ⇒ Promise.<(string|null)>

Get Text from Archive by URL

Kind: instance method of Archive

Param Type
url string

archive.getBase64(url, [mimeType]) ⇒ Promise.<(string|null)>

Get a base64 encoded result from Archive by URL

Kind: instance method of Archive
Returns: Promise.<(string|null)> - base64 encoded

Param Type
url string
[mimeType] string