pingman:带有节点且无依赖项的ping模块的包装器

时间:2021-05-02 09:13:07
【文件属性】:
文件名称:pingman:带有节点且无依赖项的ping模块的包装器
文件大小:82KB
文件格式:ZIP
更新时间:2021-05-02 09:13:07
nodejs node typescript travis-ci ping 平曼 人性化的节点包装器,用于跨平台ping实用程序。 将ping实用程序添加到您的项目,零依赖项。 使用最新的ES6功能进行构建,并具有对async / await和promises的本机支持。 新发布并积极维护。 小包装。 安装 $ npm install pingman 强调 用法 const ping = require ( 'pingman' ) ; ( async ( ) => { try { const response = await ping ( '127.0.0.1' ) ; console . log ( response ) ; if ( response . alive ) { //=>if pinged ip is available and responds } } catch ( error ) { console . l
【文件预览】:
pingman-master
----.github()
--------workflows()
----.nycrc.json(118B)
----src()
--------log.ts(757B)
--------types.ts(1KB)
--------index.ts(1KB)
--------errors.ts(503B)
--------builder()
--------helper.ts(2KB)
--------parser()
--------messages.ts(646B)
--------ping.ts(914B)
----.npmignore(12B)
----.codeclimate.yml(391B)
----CONTRIBUTING.md(721B)
----tsconfig.json(567B)
----LICENSE(1KB)
----test()
--------log.ts(573B)
--------builder()
--------helper.ts(963B)
--------parser()
--------ping.ts(273B)
----README.md(7KB)
----CODE_OF_CONDUCT.md(3KB)
----.gitignore(54B)
----package-lock.json(208KB)
----package.json(1KB)

网友评论