# geojson-scanner

> Library to scan possible issues in a GeoJson

Latest version **1.4.4** (published 2021-10-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install geojson-scanner
pnpm add geojson-scanner
yarn add geojson-scanner
bun add geojson-scanner
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.4 |
| Published | 2021-10-17 |
| First published | 2021-10-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 22.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Luiz Guilherme dos Santos Acerbi |
| Maintainers | lgacerbi |
| Keywords | geojson, 2dsphere |

## Links

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

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

- 1.4.4 (latest) — 2021-10-17
- 1.4.3 — 2021-10-17
- 1.4.2 — 2021-10-16
- 1.3.2 — 2021-10-16
- 1.3.1 — 2021-10-15
- 1.2.1 — 2021-10-09
- 1.1.1 — 2021-10-09
- 1.1.0 — 2021-10-09
- 1.0.1 — 2021-10-09
- 1.0.0 — 2021-10-09

## README

# Geojson-Scanner
Library that has utilities to examine and extract info of the GeoJson structures, such as Polygon, Point, LineString and many others.

#
## Getting Started

Install GeoJson-Scanner with [npm](https://www.npmjs.com/package/geojson-scanner):

```shell
npm i geojson-scanner
```

Import GeoJson-Scanner in your file:
```javascript
const GeoJsonScanner = require('geojson-scanner')
```

Then you have access to all methods, let's validate if this object is a valid GeoJson Polygon:
```javascript
const GeoJsonScanner = require('geojson-scanner')

const polygon = {
    type: "Polygon",
    coordinates: [
        [
            [
              -43.06640625,
              44.213709909702054
            ],
            [
              -49.92187499999999,
              37.16031654673677
            ],
            [
              -31.81640625,
              38.41055825094609
            ],
            [
              -43.06640625,
              44.213709909702054
            ]
          ]
        ]
    }

console.log(GeoJsonScanner.isValidPolygon(polygon)) // Logs true

```

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