# wiesels-mousejs

> mouse move,click,get position ...

Latest version **0.2.5** (published 2015-03-15) · 2-clause-BSD license · 0 weekly downloads

## Install

```sh
npm install wiesels-mousejs
pnpm add wiesels-mousejs
yarn add wiesels-mousejs
bun add wiesels-mousejs
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2015-03-15 |
| First published | 2014-07-05 |
| Weekly downloads | 0 |
| License | 2-clause-BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | wiesel78 |
| Maintainers | wiesel78 |
| Keywords | mousemove, mouse, maus, motion |

## Links

- npm: https://www.npmjs.com/package/wiesels-mousejs
- Repository: https://github.com/wiesel78/wiesels-mousejs
- Issues: https://github.com/wiesel78/wiesels-mousejs/issues
- npm.io page: https://npm.io/package/wiesels-mousejs

## Dependencies (5)

- [ffi](https://npm.io/package/ffi.md) *
- [ref](https://npm.io/package/ref.md) *
- [edge](https://npm.io/package/edge.md) *
- [NodObjC](https://npm.io/package/NodObjC.md) ~1.0.0
- [ref-struct](https://npm.io/package/ref-struct.md) *

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 0.2.5 (latest) — 2015-03-15
- 0.2.3 — 2014-07-06
- 0.2.2 — 2014-07-05
- 0.2.1 — 2014-07-05
- 0.2.0 — 2014-07-05
- 0.1.0 — 2014-07-05

## README

wiesels-mousejs
===============

## Install

```
    npm install wiesels-mousejs
```

## Init

```
    var mouse = require("wiesels-mousejs");
```

### Click  

emulate a click event

```
    mouse.click();
```

### Move

```
    mouse.move( 100, 300 )
```

set the mouse position to x = 100 and y = 300

### MoveRelative

```
    mouse.moveRelative( 20, 0 );
```

set the position relative to the current position  

### X

getter/setter

```
    mouse.x() // get the current x position
    mouse.x(20) // set the x position to 20
```

### Y 

getter/setter

```
    mouse.y() // get the current x position
    mouse.y(300) // set the y position to 300 
```

### open and close

open and close the mouse object.  
require("wiesels-mousejs") do a "open" automaticaly.


```
    mouse.open();

    // do any mouse operations

    mouse.close();
```

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