https://github.com/euank/node-opendirectory-size
Calculates the size of an open directory
https://github.com/euank/node-opendirectory-size
Last synced: over 1 year ago
JSON representation
Calculates the size of an open directory
- Host: GitHub
- URL: https://github.com/euank/node-opendirectory-size
- Owner: euank
- Created: 2014-05-31T00:09:30.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-31T00:23:38.000Z (about 12 years ago)
- Last Synced: 2025-03-05T10:03:30.875Z (over 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Opendirectory-size
This is a simple program to naively calculate the total size of an open
directory.
It attempts to not go higher than the given directory link.
## Installation
```
npm install -g node-opendirectory-size # sudo might be needed
```
## Usage
```
opendirectory-size http://distfiles.gentoo.org/releases/alpha/autobuilds/current-iso/
```
Example output:
Stats:
Files: 17
Total size: 275.11 MB
Size and number by content-type:
Type: text/html;charset=ISO-8859-1, Num: 9, Size: 0 bytes
Type: application/octet-stream, Num: 3, Size: 111.24 MB
Type: text/plain; charset=UTF-8, Num: 1, Size: 1.93 KB
Type: application/x-bzip2, Num: 3, Size: 163.87 MB
Type: text/plain, Num: 1, Size: 1.89 KB