# esri-extent

> Get the Esri-formatted extent of a GeoJSON feature collection.

Latest version **1.1.3** (published 2018-01-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install esri-extent
pnpm add esri-extent
yarn add esri-extent
bun add esri-extent
```

## 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.1.3 |
| Published | 2018-01-10 |
| First published | 2015-03-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Nate Goldman |
| Maintainers | jgravois, dmfenton, chelm |
| Keywords | bounding, box, collection, esri, extent, feature, geojson |

## Links

- npm: https://www.npmjs.com/package/esri-extent
- Repository: https://github.com/GeoXForm/esri-extent
- Issues: https://github.com/GeoXForm/esri-extent/issues
- npm.io page: https://npm.io/package/esri-extent

## Dependencies (2)

- [bbox2extent](https://npm.io/package/bbox2extent.md) ^1.0.1
- [@types/geojson](https://npm.io/package/@types/geojson.md) ^7946.0.0

## 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.1.3 (latest) — 2018-01-10
- 1.1.2 — 2018-01-02
- 1.1.1 — 2015-08-03
- 1.1.0 — 2015-03-20
- 1.0.0 — 2015-03-19

## README

# esri-extent

> Get the Esri-formatted extent of a GeoJSON feature collection.

[![](https://img.shields.io/npm/v/esri-extent.svg?style=flat-square)](https://www.npmjs.com/package/esri-extent)
[![](https://img.shields.io/travis/GeoXForm/esri-extent.svg?style=flat-square)](https://travis-ci.org/GeoXForm/esri-extent)

## Install

```
npm install esri-extent
```

## Usage

```js
var esriExtent = require('esri-extent')
var example = require('./test/geojson-spec-example.json')

var extent = esriExtent(example)

// OR

esriExtent(example, function (err, extent) {
  if (err) throw err

  console.log(extent)
  // {
  //   xmin: 100,
  //   ymin: 0,
  //   xmax: 105,
  //   ymax: 1,
  //   spatialReference: {
  //     wkid: 4326,
  //     latestWkid: 4326
  //   }
  // }
})
```

## License

[ISC](LICENSE)

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