Documentation improvements with clear examples needed for fs.StatFs properties.
The issue requests better documentation for fs.StatFs properties including examples for bsize, bavail, bfree, blocks, files, and clarification on type. The scope is limited to documentation improvements with clear examples, making it a good candidate for contributors familiar with Node.js filesystem operations.
https://nodejs.org/api/fs.html#class-fsstatfs
statfs.bsize fails to mention if the size is reported in bits or bytesstatfs.bavail and statfs.bfree can be used to calculate available and free space, it would be appropriate to put an example on how to use them
Example:
import { statfs } from "fs/promises"
const statsfs = await statfs("/tmp")
const available_bits_or_bytes_not_documented = statsfs.bsize * statsfs.bavail
statfs.blocks and statfs.files would strongly benefit from an examplestatfs.type and why is it a number?Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!