{"id":13804836,"url":"https://github.com/mkdika/lff-cr","last_synced_at":"2025-05-12T22:14:07.759Z","repository":{"id":62129903,"uuid":"260616742","full_name":"mkdika/lff-cr","owner":"mkdika","description":"Simple and straightforward large files finder utility","archived":false,"fork":false,"pushed_at":"2021-05-15T02:23:32.000Z","size":687,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-12T22:13:56.296Z","etag":null,"topics":["crystal","finder","large-files","linux","osx","unix-shell","utility"],"latest_commit_sha":null,"homepage":"","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkdika.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-02T04:56:41.000Z","updated_at":"2025-02-03T20:24:50.000Z","dependencies_parsed_at":"2022-10-26T23:45:40.530Z","dependency_job_id":null,"html_url":"https://github.com/mkdika/lff-cr","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkdika%2Flff-cr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkdika%2Flff-cr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkdika%2Flff-cr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkdika%2Flff-cr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkdika","download_url":"https://codeload.github.com/mkdika/lff-cr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253831002,"owners_count":21971007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crystal","finder","large-files","linux","osx","unix-shell","utility"],"created_at":"2024-08-04T01:00:54.449Z","updated_at":"2025-05-12T22:14:07.707Z","avatar_url":"https://github.com/mkdika.png","language":"Crystal","funding_links":[],"categories":["CLI Utils"],"sub_categories":[],"readme":"# lff-cr\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](/LICENSE)\n[![Built with Crystal](https://img.shields.io/badge/built%20with-crystal-000000.svg?style=flat-square)](https://crystal-lang.org/)\n[![Build Status](https://travis-ci.org/mkdika/lff-cr.svg?branch=master)](https://travis-ci.org/mkdika/lff-cr)\n[![Latest release](https://img.shields.io/github/release/mkdika/lff-cr.svg)](https://github.com/mkdika/lff-cr/releases)\n[![lff](https://snapcraft.io//lff/badge.svg)](https://snapcraft.io/lff)\n\nSimple and straightforward large files finder utility for *nix, optimize for human.\n\n## Why?\n\nThere are workarounds about how to do it on *nix, for instance is using combination of `find`, `du`, `sort`, `head`.\n\n```bash\nfind /your/directory -xdev -type f -exec du -sh {} ';' | sort -rh | head -n10\n# will printout the top 10 largest files size within given directory\n```\n\nBut I'm to lazy to memorize them all :sweat_smile: I need a simpler solution instead!\n\n```bash\n# my way\nlff /your/directory\n```\n\n## Benchmark\n\nI simple benchmarking with `time`, with searching the top largest files within moderate Java project directory and about 11.901 files:\n\n```bash\n# with: find, du, sort, head\nfind /my/project/directory -xdev -type f -exec du -sh {} ';'  6.63s user 14.03s system 85% cpu 24.131 total\nsort -rh  0.08s user 0.07s system 0% cpu 24.145 total\nhead -n10  0.00s user 0.00s system 0% cpu 24.141 total\n```\n\n```bash\n# with: lff\n./lff /my/project/directory  0.05s user 0.25s system 92% cpu 0.328 total\n```\n\nIt is faster!\n\n_NOTE: Benchmarking is run on MBP2018 13\" OSX 10.15.4._\n\n## Installation\n\n### MacOS\n\n```bash\nbrew tap mkdika/brew\nbrew install lff\n```\n\n### Linux via [snap](https://snapcraft.io/)\n\nFor more on installing \u0026 using `snap` with your Linux distribution, see the [official documentation](https://docs.snapcraft.io/installing-snapd).\n\n```bash\nsnap install lff\n```\n\n## Build from source\n\nInstall [Crystal](https://crystal-lang.org/install/) language.\n\n```bash\ngit clone https://github.com/mkdika/lff-cr.git\ncd lff-cr/\nshards build --production --release\n```\n\nThe built binary will be available as `./bin/lff`\n\n## Usage\n\n```bash\n# lff \u003cdirectory-path\u003e\nlff ~/Downloads\n# or simple `lff` only to run at current directory.\n```\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/mkdika/lff-cr/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Maikel Chandika](https://github.com/mkdika) - creator and maintainer\n\n## Copyright and License\n\nCopyright 2020 - 2021 Maikel Chandika (mkdika@gmail.com). Code released under the MIT License. See [LICENSE](/LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkdika%2Flff-cr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkdika%2Flff-cr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkdika%2Flff-cr/lists"}