# nativescript-zip2

Latest version **1.3.5** (published 2018-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install nativescript-zip2
pnpm add nativescript-zip2
yarn add nativescript-zip2
bun add nativescript-zip2
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.5 |
| Published | 2018-01-24 |
| First published | 2018-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Osei Fortune |
| Maintainers | farfromrefuge |
| Keywords | NativeScript, JavaScript, Android, iOS, Zip |

## Links

- npm: https://www.npmjs.com/package/nativescript-zip2
- Repository: https://github.com/Akylas/nativescript-zip2
- Issues: https://github.com/Akylas/nativescript-zip2/issues
- npm.io page: https://npm.io/package/nativescript-zip2

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.3.5 (latest) — 2018-01-24

## README

# NativeScript Zip

## Installation
`tns plugin add nativescript-zip`

## Usage

```ts
import {Zip} from "nativescript-zip";
import * fs from "file-system";
let zipPath = fs.path.join(fs.knownFolders.temp().path, "stuff.zip");
let dest = fs.path.join(fs.knownFolders.currentApp().path, "/assets");
Zip.unzip(zipPath,dest);
```
### Progress
```ts
import {Zip} from "nativescript-zip";
import * fs from "file-system";
let zipPath = fs.path.join(fs.knownFolders.temp().path, "stuff.zip");
let dest = fs.path.join(fs.knownFolders.currentApp().path, "/assets");
Zip.unzipWithProgress(zipPath,dest,onZipProgress);

function onZipProgress(percent: number) {
    console.log(`unzip progress: ${percent}`);
}
```


# TODO
- [ ] Compress method
- [x] Progress

---
_Source: https://npm.io/package/nativescript-zip2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
