# diskinfo **Repository Path**: mirrors/diskinfo ## Basic Information - **Project Name**: diskinfo - **Description**: diskinfo 是一个磁盘信息工具,显示磁盘相关的所有信息,信息量比 df 工具更加丰富,而且该工具可在多个平台下使用 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/di - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-24 - **Last Updated**: 2026-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README diskinfo ======== nodejs module to get disk information, will call system command to get drive info. Parse result and load info in array. usage ===== var d = require('diskinfo'); d.getDrives(function(err, aDrives) { for (var i = 0; i < aDrives.length; i++) { console.log('Drive ' + aDrives[i].filesystem); console.log('blocks ' + aDrives[i].blocks); console.log('used ' + aDrives[i].used); console.log('available ' + aDrives[i].available); console.log('capacity ' + aDrives[i].capacity); console.log('mounted ' + aDrives[i].mounted); console.log('-----------------------------------------'); } });