sz-cli-0.1.0 is not a library.
sz
A pragmatic way to view your file sizes. Think of it as an easier-to-use and more intuitive alternative to the du coreutil.
This project is still under development and might contain bugs and crappy code! Please open issues/PRs if you find something janky.
usage
Let's take a look at how we can use this utility in a directory.
- to find the size of the current directory (excluding gitignored and hidden files/files in gitignored or hidden directories)
this will be the output:

|
|
- if you want to list the size of each file along with the file path:

- you can include gitignored and hidden flags by including the
-gand-iflag respectively.

- if you run this command in a directory with more than 50 files it will only show the first 20.
you can either provide the number of items you want to list with the
-nargument or include the-Lflag to list all the items.
- you can also sort the items based on size using the
-dand-aflags.


- to view only the root directories in a path, use the
-Dflag. this flag will only show directories with the parent same as the path provided. it will not list any files.

- you can recursively view all the directories in a path by providing the
-Rflag.

note that you can use all the options previously mentioned with the -D flag too.
# shows the 3 largest directories in this path (including gitignored or hidden)

- use the
-eflag to exclude directories

warning: this arg doesn't really work with the -i or -g
- use the
-sflag to show the total line count of all the files parsed. Run this only with UTF-8 encoded files, obviously.

options
The options are pretty simple yet powerful:
)
Run sz -h to view this help message.