# geojsonio-cli

> a cli for geojson.io

Latest version **0.2.3** (published 2017-02-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install geojsonio-cli
pnpm add geojsonio-cli
yarn add geojsonio-cli
bun add geojsonio-cli
```

Provides the command `geojsonio`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2017-02-07 |
| First published | 2013-09-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 170 |
| Author | Tom MacWright |
| Maintainers | tmcw |
| Keywords | geojson.io, cli, pipe |

## Links

- npm: https://www.npmjs.com/package/geojsonio-cli
- Repository: https://github.com/mapbox/geojsonio-cli
- Homepage: https://github.com/mapbox/geojsonio-cli#readme
- Issues: https://github.com/mapbox/geojsonio-cli/issues
- npm.io page: https://npm.io/package/geojsonio-cli

## Dependencies (5)

- [github](https://npm.io/package/github.md) ~8.1.0
- [opener](https://npm.io/package/opener.md) ~1.4.2
- [minimist](https://npm.io/package/minimist.md) 1.2.0
- [geojsonhint](https://npm.io/package/geojsonhint.md) 2.0.0
- [concat-stream](https://npm.io/package/concat-stream.md) ~1.6.0

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

- 0.2.3 (latest) — 2017-02-07
- 0.2.1 — 2017-01-16
- 0.2.0 — 2016-09-29
- 0.1.3 — 2016-05-10
- 0.1.2 — 2014-11-18
- 0.1.1 — 2014-04-09
- 0.1.0 — 2014-04-09
- 0.0.2 — 2013-10-04
- 0.0.1 — 2013-09-10
- 0.0.0 — 2013-09-10

## README

# geojsonio-cli

Shoot files from your shell to [geojson.io](http://geojson.io/) for lightning-fast
visualization and editing. This is a [node.js](http://nodejs.org) module and thus requires
node.

Read or pipe a file

    geojsonio map.geojson
    geojsonio < run.geojson

Options:

    --print prints the url rather than opening it
    --domain="http://custominstancedomain.com/"

## installation

    npm install -g geojsonio-cli

## examples

[pipe wkt through wellknown into geojsonio to get magic](https://github.com/mapbox/wellknown):

```sh
npm install -g geojsonio-cli
npm install -g wellknown
echo "MultiPoint(0 0, 1 1, 3 3)" | wellknown | geojsonio
```

[pipe grep'ed geojson through geojsonify](https://github.com/blackmad/geojsonify):

```sh
npm install -g geojsonio-cli
npm install -g geojsonify
grep -h something *json | geojsonify | geojsonio
```

[convert kml or gpx to geojson and push it to geojson.io](https://github.com/mapbox/togeojson):

```sh
npm install -g geojsonio-cli
npm install -g togeojson
togeojson foo.kml | geojsonio
```

copy the generated url instead of opening it in a browser (on OSX)

```sh
geojsonio foo.geojson --print | pbcopy
```

simplify geojson with [simplify-geojson](https://github.com/maxogden/simplify-geojson)

```sh
npm install simplify-geojson geojsonio-cli csv2geojson -g
curl https://raw.github.com/maxogden/simplify-geojson/master/test-data/oakland-route.csv | \
  csv2geojson --lat "LATITUDE N/S" --lon "LONGITUDE E/W" --line true | \
  simplify-geojson -t 0.001 | \
  geojsonio
```

## Ports

* [AJ Ashton ported geojsonio-cli to shell/perl](https://gist.github.com/ajashton/6504728)

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