diff options
| author | n0tori <188390306+n0tori@users.noreply.github.com> | 2026-01-08 21:36:30 +0000 |
|---|---|---|
| committer | n0tori <188390306+n0tori@users.noreply.github.com> | 2026-01-08 21:36:30 +0000 |
| commit | 248fa8ab2d8ca2ac7c8ee403a5ff9b5a0f1cd065 (patch) | |
| tree | afaabf244d3d0e528d67fff0bc2758ec02b5cce7 /README.md | |
| parent | 0846ea6ec3dc64590bccddc4253093cca008aa8c (diff) | |
update readme
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 63 |
1 files changed, 58 insertions, 5 deletions
@@ -2,15 +2,68 @@  -A simple script that displays a coloured language breakdown bar for your codebase, similar to GitHub's linguist feature. +A lightweight bash script that displays a coloured language breakdown bar for your codebase, similar to GitHub's linguist feature. -## Usage +# Installation ```bash +# download the script +chmod +x langbreak +``` + +# Usage + +## Basic Usage +Display a visual breakdown of the current directory: +```bash ./langbreak ``` -Analyzes the current directory and shows a visual breakdown of programming languages by file size. +## Help +```bash +./langbreak --help +``` + +## Options +Export language data to JSON or YAML: +```bash +./langbreak --json +./langbreak --yaml +``` + +Redirect to a file: +```bash +./langbreak --json > stats.json +./langbreak --yaml > stats.yaml +``` + +### JSON Export +```json +{ + "timestamp": "2026-01-08T18:34:27+00:00", + "total_bytes": 15234, + "languages": [ + { + "name": "Python", + "bytes": 8500, + "files": 12, + "percentage": 55.8 + } + ] +} +``` + +### YAML Export +```yaml +timestamp: "2026-01-08T18:34:27+00:00" +total_bytes: 15234 +languages: + - name: "Python" + bytes: 8500 + files: 12 + percentage: 55.8 +``` + +# License -## License -GPLv3 +GPLv3 |
