https://github.com/nullnull/du_pretty
Show pretty print of `du` outputs
https://github.com/nullnull/du_pretty
cli ruby rubygem
Last synced: 10 months ago
JSON representation
Show pretty print of `du` outputs
- Host: GitHub
- URL: https://github.com/nullnull/du_pretty
- Owner: nullnull
- License: mit
- Created: 2018-09-04T08:12:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-17T23:19:24.000Z (almost 3 years ago)
- Last Synced: 2025-07-14T03:30:54.292Z (10 months ago)
- Topics: cli, ruby, rubygem
- Language: Ruby
- Homepage:
- Size: 37.1 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# DuPretty
[](https://rubygems.org/gems/du_pretty)
[](LICENSE)
[](https://circleci.com/gh/nullnull/du_pretty/tree/master)
[](https://codeclimate.com/github/nullnull/du_pretty/maintainability)
[](https://codeclimate.com/github/nullnull/du_pretty/test_coverage)
Show pretty print of `du` outputs.
[](https://gyazo.com/be6f718ff31cec830d2bddfeb6da2756)
## Installation
```sh
$ gem install 'du_pretty'
```
## Usage
```sh
$ du_pretty
# specify max depth (default 1)
$ du_pretty -d 2
# Filter results of `du` by its file's size
$ du_pretty --size 50M
```
[](https://gyazo.com/99eca1755d9c112cdfde70e2de2290e6)
```sh
# Show results sorted by the file's size (default)
$ du_pretty --sort
```
[](https://gyazo.com/c330d33adc4c546acd3ccd1b2a9d2755)
```sh
# Show tree like results.
$ du_pretty --tree
# help
$ du_pretty --help
```
## Development
```sh
# run
$ bundle install
$ bundle exec exe/du_pretty
# test
$ bundle exec rspec spec
```
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/nullnull/du_pretty. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Code of Conduct
Everyone interacting in the DuPretty project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/du_pretty/blob/master/CODE_OF_CONDUCT.md).