# shapefile-to-geojson

> This package allows you to easily convert a shapefile to geojson.

Latest version **1.0.1** (published 2022-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install shapefile-to-geojson
pnpm add shapefile-to-geojson
yarn add shapefile-to-geojson
bun add shapefile-to-geojson
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-01-16 |
| First published | 2022-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | rrainn, Inc. |
| Maintainers | fishcharlie |
| Keywords | shapefile, geojson, convert, converter, transform, gis, geography |

## Links

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

## 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.0.1 (latest) — 2022-01-16
- 1.0.0 — 2022-01-16

## README

# shapefile-to-geojson

This is a simple package to convert shapefiles to GeoJSON.

## Install

```bash
npm install shapefile-to-geojson
```

## Usage

```js
const shapefileToGeojson = require("shapefile-to-geojson");

const geoJSON = await shapefileToGeojson.parseFiles("./path/to/shapefile.shp", "./path/to/dbf.dbf");

const geoJSON = await shapefileToGeojson.parseFolder("./path/to/files"); // This directory should include 1 `shp` & 1 `dbf` file
```

## License

[MIT License](LICENSE)

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