https://github.com/amilajack/node-disk-utility
Quickly calculate the size of a folder or disk on macOS and Linux
https://github.com/amilajack/node-disk-utility
disk neon node rust size
Last synced: about 1 month ago
JSON representation
Quickly calculate the size of a folder or disk on macOS and Linux
- Host: GitHub
- URL: https://github.com/amilajack/node-disk-utility
- Owner: amilajack
- License: mit
- Created: 2018-11-02T05:51:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-31T03:08:27.000Z (over 2 years ago)
- Last Synced: 2025-02-25T10:54:16.408Z (about 2 months ago)
- Topics: disk, neon, node, rust, size
- Language: Rust
- Homepage:
- Size: 1.76 MB
- Stars: 30
- Watchers: 1
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# disk-utility

Quickly calculate the size of a folder or disk on macOS, Linux, and Windows.
## Features
* Does not depend on system dependencies (like [`du`](https://en.wikipedia.org/wiki/Du_(Unix)))
* Built using [Neon](https://github.com/neon-bindings/neon)!## Installation
```bash
npm install disk-utility
```## Usage
```js
import diskUtility from 'disk-utility';// Calculate the size of a directory
diskUtility.dirSize(__dirname);// Pass optional core count
diskUtility.dirSize(__dirname, 4);
```## Local Setup
```bash
git clone https://github.com/amilajack/disk-utility
cd disk-utility
npm install
npm test
```