bendi / xpc-connect

Mac connection bindings for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install | Contributing

xpc-connect

build status downloads Contributor count

XPC Services connection bindings for node.js

Supported data types

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

Install

npm install xpc-connect

Example

const XpcConnect = require('xpc-connect');
const xpcConnect = new XpcConnect('<Mach service name>');

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

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

xpcConnect.setup();

const mesage = {
    ... 
};

xpcConnect.sendMessage(mesage);

Contributing

Please checkout the contributing guide to learn about our release process.

About

Mac connection bindings for node.js

License:MIT License


Languages

Language:C++ 86.9%Language:JavaScript 8.2%Language:Python 4.9%