# parse2-kmz

> Parse KMZ Files

Latest version **1.0.7** (published 2022-05-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install parse2-kmz
pnpm add parse2-kmz
yarn add parse2-kmz
bun add parse2-kmz
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2022-05-18 |
| First published | 2020-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 401.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Victor Camara Lessa |
| Maintainers | victorlessa |
| Keywords | KML, KMZ, JSON, geoJson, parse, parse KML, parse KMZ, map |

## Links

- npm: https://www.npmjs.com/package/parse2-kmz
- Repository: https://github.com/VictorLessa/parse2-kmz
- Homepage: https://github.com/VictorLessa/parse2-kmz#readme
- Issues: https://github.com/VictorLessa/parse2-kmz/issues
- npm.io page: https://npm.io/package/parse2-kmz

## Dependencies (4)

- [request](https://npm.io/package/request.md) ^2.88.2
- [unzipper](https://npm.io/package/unzipper.md) ^0.10.11
- [@xmldom/xmldom](https://npm.io/package/@xmldom/xmldom.md) ^0.8.0
- [@mapbox/togeojson](https://npm.io/package/@mapbox/togeojson.md) ^0.16.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.7 (latest) — 2022-05-18
- 1.0.5 — 2020-10-19
- 1.0.4 — 2020-09-01
- 1.0.3 — 2020-08-31
- 1.0.2 — 2020-08-31
- 1.0.1 — 2020-08-31
- 1.0.0 — 2020-08-31

## README

# parse2-kmz

This version is an update to the [parse-kmz](https://www.npmjs.com/package/parse-kmz) package where there was an error in the [unzip](https://www.npmjs.com/package/unzip2) package causing conflict when parsearing the geoJSON

# Installation

Simplest way to install `parse2-kmz` is to use [npm](http://npmjs.org), just `npm install parse2-kmz` which will download parse-kmz and all dependencies.

# Usage

```javascript
const parseKMZ = require("parse2-kmz");
// KMZ To KML From URL
parseKMZ
  .toKML("http://iblogbox.github.io/js/gpx/sample/Tour_de_France.kmz")
  .then(console.log)
  .catch(console.error);

// KMZ To KML From File
parseKMZ.toKML("./file/kmx.kmz").then(console.log).catch(console.error);

// KMZ To JSON From URL
parseKMZ
  .toJson("http://iblogbox.github.io/js/gpx/sample/Tour_de_France.kmz")
  .then(console.log)
  .catch(console.error);

// KMZ To JSON From File
parseKMZ.toJson("./file/kmx.kmz").then(console.log).catch(console.error);
```

But if you know you really found a bug, feel free to open an issue instead.

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