izy521 / node-peertalk

Unofficial PeerTalk module for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-peertalk

Unofficial PeerTalk module for Node.js

This module allows you to use PeerTalk by rsms to communicate with an iOS device through USB, more information is available on the PeerTalk GitHub repository.

It uses ES6 syntax, which makes it incompatible with older versions of Node.js.

Install

npm install [-g] peertalk

Prerequisites: usbmux

Module Usage

  • Port {integer}
  • Options {object} - Options for node-usbmux
const PeerTalk = require("peertalk"),
      peertalk = new PeerTalk();

peertalk.then((device) => {
    // device.emit("send", "PeerTalk message here!");
    // device.on("data", (data) => { // do something });
});

Credits

About

Unofficial PeerTalk module for Node.js

License:MIT License


Languages

Language:JavaScript 100.0%