hdckit
v0.12.1
Published
A pure Node.js client for the OpenHarmony Device Connector
Readme
hdckit
基于 Node.js 实现的鸿蒙 HDC 客户端。
安装
你可以在 npm 上获取它。
npm install hdckit --save使用
import Hdc from 'hdckit'
const client = Hdc.createClient()
;(async () => {
const targets = await client.listTargets()
if (targets.length > 0) {
const target = await client.getTarget(targets[0])
const parameters = await target.getParameters()
console.log(parameters['const.product.name'])
}
})()