Quickly calculate the size of a folder or disk on macOS and Linux
- Does not depend on system dependencies (like
du
) - Cross-platform (waiting on windows support)
- Built using Neon!
npm install disk-utility
import diskUtility from 'disk-utility';
// Calculate the size of a directory
diskUtility.dirSize(__dirname);
// Pass optional core count
diskUtility.dirSize(__dirname, 4);
git clone https://github.com/amilajack/disk-utility
cd disk-utility
yarn
yarn test