# geojson-to-svg-cli

> Command line tool to convert GeoJSON to SVG.

Latest version **1.0.3** (published 2025-04-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install geojson-to-svg-cli
pnpm add geojson-to-svg-cli
yarn add geojson-to-svg-cli
bun add geojson-to-svg-cli
```

Provides the command `geojson-to-svg`.

## Health

**Score 35/100 (D)** — status: stable.

Positive: no vulnerabilities.

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

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2025-04-29 |
| First published | 2017-05-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 5 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Author | Jannis R |
| Maintainers | derhuerst |
| Keywords | geojson, svg, cli, convert |

## Links

- npm: https://www.npmjs.com/package/geojson-to-svg-cli
- Repository: https://github.com/derhuerst/geojson-to-svg-cli
- Issues: https://github.com/derhuerst/geojson-to-svg-cli/issues
- npm.io page: https://npm.io/package/geojson-to-svg-cli

## Dependencies (5)

- [mri](https://npm.io/package/mri.md) ^1.2.0
- [@turf/bbox](https://npm.io/package/@turf/bbox.md) ^6.5.0
- [projections](https://npm.io/package/projections.md) ^1.0.0
- [geojson-svgify](https://npm.io/package/geojson-svgify.md) ^0.5.0
- [virtual-dom-stringify](https://npm.io/package/virtual-dom-stringify.md) ^3.0.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2025-04-29
- 1.0.2 — 2025-04-29
- 1.0.1 — 2020-09-30
- 1.0.0 — 2018-10-08
- 0.1.1 — 2018-02-28
- 0.1.0 — 2017-05-29

## README

# geojson-to-svg-cli

**Command line tool to convert GeoJSON to SVG.**

[![npm version](https://img.shields.io/npm/v/geojson-to-svg-cli.svg)](https://www.npmjs.com/package/geojson-to-svg-cli)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/geojson-to-svg-cli.svg)
![minimum Node.js version](https://img.shields.io/node/v/geojson-to-svg-cli.svg)
[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)
[![chat with me via Matrix](https://img.shields.io/badge/chat%20with%20me-via%20Matrix-000000.svg)](https://matrix.to/#/@derhuerst:matrix.org)


## Installing

Run it directly using [npx](https://npmjs.com/package/npx):

```shell
cat example.geo.json | npx geojson-to-svg-cli > example.svg
```

or install it globally and run it:

```shell
npm install -g geojson-to-svg-cli
cat example.geo.json | geojson-to-svg-cli > example.svg
```


## Usage

```
Usage:
    geojson-to-svg [-p mercator]
Options:
    --projection  -p  Which projection to use. Default: mercator
                      Refer to npmjs.com/projections for a list.
Examples:
    cat example.geo.json | geojson-to-svg -p lambert > example.svg
```


## Contributing

If you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/derhuerst/geojson-to-svg-cli/issues). Keep in mind that [this project has a code of conduct](CODE_OF_CONDUCT.md).

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