# xpc-connection

> XPC Connection binding for node.js

Latest version **0.1.4** (published 2015-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install xpc-connection
pnpm add xpc-connection
yarn add xpc-connection
bun add xpc-connection
```

## 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.4 |
| Published | 2015-08-30 |
| First published | 2013-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Author | Sandeep Misty |
| Maintainers | sandeepmistry |
| Keywords | XPC, XPC connection |

## Links

- npm: https://www.npmjs.com/package/xpc-connection
- Repository: https://github.com/sandeepmistry/node-xpc-connection
- Issues: https://github.com/sandeepmistry/node-xpc-connection/issues
- npm.io page: https://npm.io/package/xpc-connection

## Dependencies (1)

- [nan](https://npm.io/package/nan.md) ^2.0.5

## Recent versions

- 0.1.4 (latest) — 2015-08-30
- 0.1.3 — 2015-04-05
- 0.1.2 — 2015-03-05
- 0.1.1 — 2015-02-22
- 0.1.0 — 2015-01-06
- 0.0.4 — 2014-09-02
- 0.0.3 — 2013-10-25
- 0.0.2 — 2013-06-25
- 0.0.1 — 2013-04-13

## README

# node-xpc-connection

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sandeepmistry/node-xpc-connection?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)


Connection binding for node.js

## Supported data types

 * int32/uint32
 * string
 * array
 * buffer
 * uuid
 * object

## Example

```javascript
var XpcConnection = require('xpc-connection');

var xpcConnection = new XpcConnection('<Mach service name>');

xpcConnection.on('error', function(message) {
    ...
});

xpcConnection.on('event', function(event) {
    ...
});

xpcConnection.setup();

var mesage = {
    ... 
};

xpcConnection.sendMessage(mesage);
```

## Build Errors

Before creating a new issue for build errors, please set your path to the following:

```sh
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
```

MacPorts and other similiar tools might be adding an incompatible compiler to your PATH (see issue [#2](https://github.com/sandeepmistry/node-xpc-connection/issues/2)) for more details.

[![Analytics](https://ga-beacon.appspot.com/UA-56089547-1/sandeepmistry/node-xpc-connection?pixel)](https://github.com/igrigorik/ga-beacon)

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