Skip to content

Quickly calculate the size of a folder or disk on macOS and Linux

License

Notifications You must be signed in to change notification settings

amilajack/node-disk-utility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

disk-utility

CI

Quickly calculate the size of a folder or disk on macOS, Linux, and Windows.

Features

  • Does not depend on system dependencies (like du)
  • Built using Neon!

Installation

npm install disk-utility

Usage

import diskUtility from 'disk-utility';

// Calculate the size of a directory
diskUtility.dirSize(__dirname);

// Pass optional core count
diskUtility.dirSize(__dirname, 4);

Local Setup

git clone https://github.com/amilajack/disk-utility
cd disk-utility
npm install
npm test