@mchakoss/duts
v1.0.7
Published
DuTS is an utility written in TypeScript that allows the user to see folder size, to see which children are the most hungry for disk space.
Readme
DuTS
DuTS is an utility written in TypeScript that allows the user to see folder size, to see which children are the most hungry for disk space.
Installation
npm i -g @mchakoss/dutsUsage
/home/foo$ duts .
:: /home/foo [12932001 bytes]
::: /home/foo/bar.txt [1024 bytes]
::: /home/foo/baz [12930977 bytes]Options
-h, --human
Displays the size in a human readable way.
/home/foo$ duts -h .
:: /home/foo [12.33 MiB]
::: /home/foo/bar.txt [1 KiB]
::: /home/foo/baz [12.33 MiB]-d, --depth [depth=1]
Sets the display depth. If omitted, it will display only the first level of files and folders.
/home/foo$ duts -d 2 -h .
:: /home/foo [12.33 MiB]
::: /home/foo/bar.txt [1 KiB]
::: /home/foo/baz [12.33 MiB]
:::: /home/foo/baz/readme.md [12.33 MiB]-s, --sort [sorting]
Sorts the result. By default, the sorting is alpabetical. Possible values are :
ascending: Sort by ascending sizesdescending: Sort by descending sizesnone: Sort alphabetically
License
This software is licensed under GNU GPL v3.
