nm-api:NetworkManager DBUS API

时间:2021-04-28 19:46:19
【文件属性】:
文件名称:nm-api:NetworkManager DBUS API
文件大小:112KB
文件格式:ZIP
更新时间:2021-04-28 19:46:19
dbus network-manager nmcli TypeScript 纳米API NetworkManager DBUS API 通过安装 npm install --save nm-api 用 要将nm-api作为HTTP服务器启动: const nm = require ( ’nm - api’ ) ; const port = Number ( process . env . NM_SERVICE_API_PORT ) ; nm . createHttpServer ( ) . then ( ( app ) => { app . listen ( port ) ; console . log ( `NetworkManager HTTP APIs running on port ${ port } ` ) ; } ) . catch ( ( err ) => { console . error ( 'Something went wro
【文件预览】:
nm-api-master
----ts-config.json(391B)
----.gitignore(23B)
----package.json(2KB)
----tslint.json(1KB)
----package-lock.json(155KB)
----LICENSE.md(629B)
----webpack.config.js(583B)
----.travis.yml(353B)
----dist()
--------index.js(4KB)
--------nm()
--------routes()
----CHANGELOG.md(1KB)
----README.md(4KB)
----lib()
--------nm()
--------index.ts(1KB)
--------routes()
----.npmignore(42B)
----docs()
--------classes()
--------interfaces()
--------README.md(15KB)
----test()
--------nm.js(760B)
----.editorconfig(374B)

网友评论