@financial-times/disk-space

1.0.0 • Public • Published

@financial-times/disk-space

This module wraps the df -BK (or df -bk if on OS X) command which shows the amount of disk space available on the file system that a given file is stored on. It returns the used size and total size of the file system in kilobytes.

Usage example

const diskSpace = require('@financial-times/disk-space');
diskSpace('/' , function(error, data) {
  console.log(data);  // returns { usedSize: 20, totalSize: 30 } in Kilobytes
});

Readme

Keywords

none

Package Sidebar

Install

npm i @financial-times/disk-space

Weekly Downloads

2,488

Version

1.0.0

License

MIT

Unpacked Size

10.8 kB

Total Files

16

Last publish

Collaborators

  • robertboulton
  • seraph2000
  • hamza.samih
  • notlee
  • emmalewis
  • aendra
  • the-ft
  • rowanmanning
  • chee
  • alexwilson