Skip to content

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

Notifications You must be signed in to change notification settings

arno06/nszipfilereader

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published