Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 805 Bytes

README.md

File metadata and controls

36 lines (31 loc) · 805 Bytes

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