amilajack / node-disk-utility

Quickly calculate the size of a folder or disk on macOS and Linux
MIT License
30 stars 4 forks source link
disk neon node rust size

disk-utility

CI

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

Features

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