Node.js获取硬盘信息

149次阅读
没有评论

相关的第三方库:cristiammercado/node-disk-info: Node module to get disk information in Windows, Linux, Mac, FreeBSD & OpenBSD (works with Electron). (github.com)

该库的实现思路就是通过识别不

识别系统->执行对应系统的命令行来获取磁盘信息

  • windows -wmic
  • Linux和OSX – df
正文完
 0
wujingquan
版权声明:本站原创文章,由 wujingquan 于2024-02-20发表,共计197字。
转载说明:Unless otherwise specified, all articles are published by cc-4.0 protocol. Please indicate the source of reprint.
评论(没有评论)