# s2cover

> cover-extract =============

Latest version **0.1.3** (published 2014-08-04) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install s2cover
pnpm add s2cover
yarn add s2cover
bun add s2cover
```

Provides the command `s2cover`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2014-08-04 |
| First published | 2014-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | morganherlocker |
| Maintainers | morganherlocker, mikemorris, ianshward, mourner, tristen, ingalls, ansis, jfirebaugh, miccolis, gretacb, aaronlidman, camilleanne, rclark, mapbox, willwhite, springmeyer, kkaefer, dthompson, yhahn, tmcw |
| Keywords | s2 |

## Links

- npm: https://www.npmjs.com/package/s2cover
- Repository: https://github.com/morganherlocker/cover-extract
- Issues: https://github.com/morganherlocker/cover-extract/issues
- npm.io page: https://npm.io/package/s2cover

## Dependencies (7)

- [s2](https://npm.io/package/s2.md) ^0.3.6
- [geocolor](https://npm.io/package/geocolor.md) 0.0.16
- [minimist](https://npm.io/package/minimist.md) ^0.2.0
- [turf-center](https://npm.io/package/turf-center.md) ^0.1.1
- [geojson-cover](https://npm.io/package/geojson-cover.md) ^0.1.4
- [turf-linestring](https://npm.io/package/turf-linestring.md) ^0.1.1
- [turf-featurecollection](https://npm.io/package/turf-featurecollection.md) ^0.1.0

## Recent versions

- 0.1.3 (latest) — 2014-08-04
- 0.1.2 — 2014-07-23
- 0.1.1 — 2014-07-22
- 0.1.0 — 2014-07-22

## README

s2cover
=============

A tiny cli for extracting [node-s2](https://github.com/mapbox/node-s2) cell covers with cell info and index order visualization. The output looks like this:

![img](https://dl.dropbox.com/s/y5gtb3m6413uehu/Screenshot%202014-07-21%2017.00.07.png)

###install

```sh
npm install s2cover -g
```

###usage

```sh
# read a geojson file
s2cover ./poly.geojson | geojsonio
```

```sh
# pipe in geojson
cat poly.geojson | s2cover | geojsonio
```

###options
```sh
-h --help : show options and usage
-l --line : draw a hilburt curve throught the cells by index order
-c --color color the cells from white->purple by index order
```

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