# assert-coordinates

> Assert that an object has x/y coordinates

Latest version **2.0.0** (published 2019-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install assert-coordinates
pnpm add assert-coordinates
yarn add assert-coordinates
bun add assert-coordinates
```

## 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 | 2.0.0 |
| Published | 2019-04-19 |
| First published | 2015-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8 |
| Dependencies | 1 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | assert, coordinates, x, y, object |

## Links

- npm: https://www.npmjs.com/package/assert-coordinates
- Repository: https://github.com/bendrucker/assert-coordinates
- Homepage: https://github.com/bendrucker/assert-coordinates#readme
- Issues: https://github.com/bendrucker/assert-coordinates/issues
- npm.io page: https://npm.io/package/assert-coordinates

## Dependencies (1)

- [is-obj](https://npm.io/package/is-obj.md) ~2.0.0

## Alternatives

- [monaco-yaml](https://npm.io/package/monaco-yaml.md) — 420.1K weekly downloads
- [@crewx/workflow](https://npm.io/package/@crewx/workflow.md) — 3.1K weekly downloads
- [yaml-cat](https://npm.io/package/yaml-cat.md) — 38 weekly downloads
- [nunjucks-in-yaml](https://npm.io/package/nunjucks-in-yaml.md) — 9 weekly downloads
- [shopify-symlinks](https://npm.io/package/shopify-symlinks.md) — 3 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2019-04-19
- 1.0.1 — 2015-08-24
- 1.0.0 — 2015-08-24

## README

# assert-coordinates [![Build Status](https://travis-ci.org/bendrucker/assert-coordinates.svg?branch=master)](https://travis-ci.org/bendrucker/assert-coordinates) [![Greenkeeper badge](https://badges.greenkeeper.io/bendrucker/assert-coordinates.svg)](https://greenkeeper.io/)

> Assert that an object has x/y coordinates


## Install

```
$ npm install --save assert-coordinates
```


## Usage

```js
var assertCoordinates = require('assert-coordinates')

assertCoordinates({x: 0, y: 2})
//=> noop

assertCoordinates({})
//=> throw new TypeError(...)
```

## API

#### `assertCoordinates(obj)` -> `undefined`

##### obj

*Required*  
Type: `object`

An object to check for x/y number coordinates.


## License

MIT © [Ben Drucker](http://bendrucker.me)

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