disk-utility

0.0.2 • Public • Published

disk-utility

Build Status

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

Features

  • Does not depend on system dependencies (like du)
  • Cross-platform (waiting on windows support)
  • 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
yarn
yarn test

Readme

Keywords

none

Package Sidebar

Install

npm i disk-utility

Weekly Downloads

5

Version

0.0.2

License

MIT

Unpacked Size

5.89 MB

Total Files

8

Last publish

Collaborators

  • amilajack