Nativescript plugin that allows reading string file content within a zip archive without full unzipping
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
platforms/ios
.gitignore
README.md
nszipfilereader.android.js
nszipfilereader.ios.js
package.json

README.md

NSZipFileReader

Nativescript plugin that allows reading string file content within a zip archive without full unzipping

Installation

Cloning the repo

git clone https://github.com/arno06/nszipfilereader

Add the plugin

//From your project dir
tns plugin add ../relative/path/to/nszipfilereader

Usage

const NSZipFileReader = require("nszipfilereader").NSZipFileReader;
/* ... */
var zipFileReader = new NSZipFileReader("path/to/archive.zip");
zipFileReader.readString("path/to/file.ext")
            .then(function(content){
                console.log(content);
            }).catch(function(e){
                console.error(e);
            });

Dependencies