# @placemarkio/tokml

> Convert GeoJSON to KML

Latest version **0.4.0** (published 2026-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @placemarkio/tokml
pnpm add @placemarkio/tokml
yarn add @placemarkio/tokml
bun add @placemarkio/tokml
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2026-10-14 |
| First published | 2021-08-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 149.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 23 |
| Author | Tom MacWright |
| Maintainers | tmcw |
| Keywords | kml, geojson |

## Links

- npm: https://www.npmjs.com/package/@placemarkio/tokml
- Repository: https://github.com/placemark/tokml
- Issues: https://github.com/placemark/tokml/issues
- npm.io page: https://npm.io/package/@placemarkio/tokml

## 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

- 0.4.0 (latest) — 2026-10-14
- 0.3.2-0 (prerelease) — 2022-06-12
- 0.3.9 — 2026-03-15
- 0.3.8 — 2026-03-15
- 0.3.7 — 2024-12-21
- 0.3.4 — 2024-09-09
- 0.3.3 — 2022-08-09
- 0.3.2 — 2022-06-12
- 0.3.1 — 2022-05-23
- 0.3.0 — 2022-05-01
- 0.3.0-2 — 2022-03-15
- 0.3.0-1 — 2022-03-15
- 0.2.2 — 2022-01-21
- 0.2.1 — 2022-01-21
- 0.2.0 — 2021-12-01
- … 2 more at https://npm.io/package/@placemarkio/tokml/versions

## README

# tokml

Convert GeoJSON to KML.

## Install

This package is [`@placemarkio/tokml`](https://www.npmjs.com/package/@placemarkio/tokml)

## [📕 API Documentation](http://tokml.docs.placemark.io/)

Notes:

- This method does not validate the GeoJSON inputs. Invalid FeatureCollections
  may produce an exception.
- GeoJSON properties can have any kind of value, including objects and arrays.
  KML properties are strings. Any non-string GeoJSON properties will be stringified
  with JSON.stringify when converting to KML.

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