# link-node

> link pc,ios,android by node.

Latest version **1.0.12** (published 2022-03-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install link-node
pnpm add link-node
yarn add link-node
bun add link-node
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.12 |
| Published | 2022-03-29 |
| First published | 2022-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 35.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | liam168520@gmain.com |
| Maintainers | meta-liam |
| Keywords | link, app, demo, liam, meta, h5 |

## Links

- npm: https://www.npmjs.com/package/link-node
- npm.io page: https://npm.io/package/link-node

## Recent versions

- 1.0.12 (latest) — 2022-03-29
- 1.0.11 — 2022-03-29
- 1.0.10 — 2022-03-29
- 1.0.9 — 2022-03-29
- 1.0.8 — 2022-03-29
- 1.0.7 — 2022-03-28
- 1.0.6 — 2022-03-28
- 1.0.5 — 2022-03-25
- 1.0.4 — 2022-03-25
- 1.0.3 — 2022-03-25
- 1.0.2 — 2022-03-25
- 1.0.1 — 2022-03-25

## README

# link-node

node语言实现的链接多端的胶水服务。

## 使用安装

```shell
npm install link-node

npm i link-node --registry=https://registry.npmmirror.com
```

## 例子

```ts
import LinkChannel from 'link-node';

callBack=(v)=> {
  console.log("call back::", v);
}

const channel = new LinkChannel(false);
channel.setHandle(this.callBack);
channel.Config.platform ="auto";
channel.Config.PC.port = 8888;
channel.Config.PC.host = "localhost";
channel.init();

setTimeout(() => {
   let r = { "jsonrpc": "2.0", "method": "say", "params": ["liam"], "id": 99, "service": "hello-world" };
   let result = channel.send(r.method, r.params, r.service);
   console.log(result);
}, 180);

```

[Vue3使用例子](https://github.com/meta-liam/vue3-vite-demo)

[开发文档](https://github.com/meta-liam/link-node)

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