aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorn0tori <188390306+n0tori@users.noreply.github.com>2026-01-08 21:36:30 +0000
committern0tori <188390306+n0tori@users.noreply.github.com>2026-01-08 21:36:30 +0000
commit248fa8ab2d8ca2ac7c8ee403a5ff9b5a0f1cd065 (patch)
treeafaabf244d3d0e528d67fff0bc2758ec02b5cce7 /README.md
parent0846ea6ec3dc64590bccddc4253093cca008aa8c (diff)
update readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md63
1 files changed, 58 insertions, 5 deletions
diff --git a/README.md b/README.md
index c301890..e37580b 100644
--- a/README.md
+++ b/README.md
@@ -2,15 +2,68 @@
![Example file](/example.png)
-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