Cross-platform native Node.js module for filesystem metadata, mount points, and volume information.
npm install @photostructure/fs-metadata
import {
getVolumeMountPoints,
getVolumeMetadata,
} from "@photostructure/fs-metadata";
// List all mounted volumes
const mountPoints = await getVolumeMountPoints();
console.log(mountPoints);
// Get metadata for a specific volume
const metadata = await getVolumeMetadata("/");
console.log(metadata);
Platform | Architecture | Node.js | OS Version |
---|---|---|---|
Windows | x64, arm64 | 20+ | Windows 10+ |
macOS | x64, arm64 | 20+ | macOS 14+ |
Linux (glibc) | x64, arm64 | 20+ | Debian 11+, Ubuntu 20.04+ |
Linux (musl) | x64, arm64 | 20+ | Alpine 3.21+ |
Note: Linux binaries require GLIBC 2.31+. The
node:20
Docker image is not supported.
NODE_DEBUG=fs-meta
for debug outputBuilt and supported by PhotoStructure