# spacemouse

> An OS X driver for the 3dconnexion SpaceMouse in JavaScript

Latest version **0.1.1** (published 2015-01-26) · MIT license · 0 weekly downloads

## Install

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

Provides the command `spacemouse`.

## 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.1.1 |
| Published | 2015-01-26 |
| First published | 2015-01-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Evan Wallace |
| Maintainers | evanw |

## Links

- npm: https://www.npmjs.com/package/spacemouse
- Repository: https://github.com/evanw/node-spacemouse
- Issues: https://github.com/evanw/node-spacemouse/issues
- npm.io page: https://npm.io/package/spacemouse

## Dependencies (2)

- [ws](https://npm.io/package/ws.md) 0.7.0
- [ffi](https://npm.io/package/ffi.md) 1.2.7

## Recent versions

- 0.1.1 (latest) — 2015-01-26
- 0.1.0 — 2015-01-26

## README

# node-spacemouse

This is an OS X driver for the 3dconnexion SpaceMouse in JavaScript. It also contains a daemon that proxies orientation data over WebSockets.

Library usage:

```
var spacemouse = require('./spacemouse').listen();
spacemouse.on('connect', function() {
  console.log('connect');
});
spacemouse.on('disconnect', function() {
  console.log('disconnect');
});
spacemouse.on('update', function(data) {
  console.log('update', data.tx, data.ty, data.tz, data.rx, data.ry, data.rz);
});
```

Daemon usage:

```
$ npm install -g spacemouse
$ spacemouse
[SpaceMouse] server listening at http://localhost:8123/
[SpaceMouse] connected to device
```

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