shiolink-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

shiolink-client.js

npm npm license npm download total npm download by month

Dependency Status devDependency Status AppVeyor Build Status Codacy Badge Greenkeeper badge

SHIOLINK client SHIORI

標準入出力からSHIOLINKプロトコルを受け渡すことでSHIORIと通信する

Install

npm install shiolink-client

Usage

import { spawn } from "child_process";
import { ShioriEncodeLayer } from "shiolink-client"; // for charset convert
import { Shiorif } from "shiorif";

async function main() {
    const ps = spawn("shiolink_adapter.exe", ["ghost/master/shiori.dll"]);
    ps.stdout.resume();

    const shiorif = new Shiorif(new ShioriEncodeLayer(new ShiolinkClient(ps.stdout, ps.stdin)));
    await shiorif.load("C:\\ukagaka\\ghost\\master\\");
    await shiorif.getVersion2();
    await shiorif.get3("OnBoot").then((tx) => console.log(tx.response.toString()));
    await shiorif.unload();
}
main();

License

This is released under Zlib License.

Readme

Keywords

none

Package Sidebar

Install

npm i shiolink-client

Weekly Downloads

2

Version

1.0.2

License

Zlib

Unpacked Size

6.73 kB

Total Files

5

Last publish

Collaborators

  • narazaka