# kml-to-geojson

> Convert KML content to GeoJSON, preserving style and folder data

Latest version **1.0.13** (published 2023-02-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install kml-to-geojson
pnpm add kml-to-geojson
yarn add kml-to-geojson
bun add kml-to-geojson
```

## 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.0.13 |
| Published | 2023-02-28 |
| First published | 2023-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 27.8 KB |
| Known vulnerabilities | 0 (+16 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Kyle Rummens |
| Maintainers | kylerummens |

## Links

- npm: https://www.npmjs.com/package/kml-to-geojson
- Repository: https://github.com/kylerummens/kml-to-geojson
- Homepage: https://github.com/kylerummens/kml-to-geojson#readme
- Issues: https://github.com/kylerummens/kml-to-geojson/issues
- npm.io page: https://npm.io/package/kml-to-geojson

## Dependencies (1)

- [xmldom](https://npm.io/package/xmldom.md) ^0.6.0

## Recent versions

- 1.0.13 (latest) — 2023-02-28
- 1.0.12 — 2023-01-12
- 1.0.11 — 2023-01-12
- 1.0.10 — 2023-01-12
- 1.0.9 — 2023-01-12
- 1.0.8 — 2023-01-10
- 1.0.7 — 2023-01-10
- 1.0.6 — 2023-01-10

## README

# kml-to-geojson
Convert KML content to GeoJSON, preserving style and folder data

## Installation
```
npm install kml-to-geojson
```

This project was built in Typescript, so typing is supported out of the box

## Usage
``` typescript
import { KmlToGeojson } from 'kml-to-geojson';
import * as fs from 'fs';

const kmlToGeojson = new KmlToGeojson();
const kmlContent = fs.readFileSync('./my-file.kml', 'utf-8');


const { folders, geojson } = kmlToGeojson.parse(kmlContent);

```

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