# get-client-xy

> Get coordinates from a mouse or touch event.

Latest version **2.0.0** (published 2021-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-client-xy
pnpm add get-client-xy
yarn add get-client-xy
bun add get-client-xy
```

## 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 | 2021-01-03 |
| First published | 2015-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | dfcreative, richienb, dy |
| Keywords | event, clientRect, touch, mousedown, mouse, mouseevent, getBoundingClientRect |

## Links

- npm: https://www.npmjs.com/package/get-client-xy
- Repository: https://github.com/Richienb/get-client-xy
- npm.io page: https://npm.io/package/get-client-xy

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2021-01-03
- 1.2.0 — 2015-07-05
- 1.1.0 — 2015-07-04
- 1.0.7 — 2015-07-04
- 1.0.6 — 2015-07-03
- 1.0.5 — 2015-05-07
- 1.0.4 — 2015-05-07
- 1.0.3 — 2015-05-07
- 1.0.2 — 2015-05-07
- 1.0.1 — 2015-04-20
- 1.0.0 — 2015-04-20

## README

# get-client-xy

Get coordinates from a mouse or touch event.

[![NPM Badge](https://nodei.co/npm/get-client-xy.png)](https://npmjs.com/package/get-client-xy)

## Install

```sh
npm install get-client-xy
```

## Usage

```js
const getClientXY = require("get-client-xy")

const [x, y] = getClientXY(event)
```

## API

### getClientXY(event)

#### event

Type: `MouseEvent | TouchEvent`

The event to extract the data from.

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