# geobounds

> Checks if point is in bounds.

Latest version **1.2.0** (published 2017-04-25) · MIT license · 0 weekly downloads

## Install

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

## 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.2.0 |
| Published | 2017-04-25 |
| First published | 2016-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Damian Krzeminski |
| Maintainers | melitele, pirxpilot |
| Keywords | geobounds, geo, bounds, rectangle |

## Links

- npm: https://www.npmjs.com/package/geobounds
- Repository: https://github.com/melitele/geobounds
- Homepage: https://github.com/melitele/geobounds#readme
- Issues: https://github.com/melitele/geobounds/issues
- npm.io page: https://npm.io/package/geobounds

## Dependencies (1)

- [point-in-polygon](https://npm.io/package/point-in-polygon.md) ^1.0.1

## Recent versions

- 1.2.0 (latest) — 2017-04-25
- 1.1.1 — 2017-02-15
- 1.1.0 — 2017-01-16
- 1.0.1 — 2016-12-26
- 1.0.0 — 2016-12-26

## README

[![NPM version][npm-image]][npm-url]
[![Build Status][build-image]][build-url]
[![Dependency Status][deps-image]][deps-url]

# geobounds

Checks if point is in bounds.

## Install

```sh
$ npm install --save geobounds
```

## Usage

```js
var geobounds = require('geobounds');
var bounds = geobounds([
  [[-1, 0], [3, 5]],
  [[100, 20], [115, 80]]
]);

bounds([1, 1]); // true
bounds([4, 1]); // false

```

Bounds can be dynamically extended.

```js
var geobounds = require('geobounds');
var bounds = geobounds();

bounds.extend([0, 1]);
bounds.extend([1, 0]);

bounds.get(); // [[[0, 0], [1, 1]]]

```

## License

MIT © [Damian Krzeminski](https://pirxpilot.me)

[npm-image]: https://img.shields.io/npm/v/geobounds
[npm-url]: https://npmjs.org/package/geobounds

[build-url]: https://github.com/melitele/geobounds/actions/workflows/check.yaml
[build-image]: https://img.shields.io/github/actions/workflow/status/melitele/geobounds/check.yaml?branch=main

[deps-image]: https://img.shields.io/librariesio/release/npm/geobounds
[deps-url]: https://libraries.io/npm/geobounds

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