locio 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,18 +1,20 @@
1
- # Locio 📊
1
+ # Locio
2
2
 
3
3
  **A powerful CLI tool to count lines and files in directories with extensive filtering options.**
4
4
 
5
- ## Features
5
+ ## Features
6
6
 
7
- - 📁 **Count files and lines** recursively in directories
8
- - 🔍 **Extensive filtering** - patterns, extensions, directories, file names
9
- - 📏 **Size filtering** - exclude files by minimum/maximum size
10
- - 🎯 **Binary detection** - automatically exclude binary files
11
- - 📊 **Multiple formats** - human-readable, JSON, CSV, TSV
12
- - **Fast and efficient** - built with Rust
13
- - 🛠️ **Rich statistics** - detailed breakdown by file extension
7
+ - **Count files and lines** recursively in directories
8
+ - **Interactive home page** - friendly menu when run without arguments
9
+ - **Extensive filtering** - patterns, extensions, directories, file names
10
+ - **Multiple extensions** - comma-separated extension lists (e.g., `rs,ts,js`)
11
+ - **Size filtering** - exclude files by minimum/maximum size
12
+ - **Binary detection** - automatically exclude binary files
13
+ - **Multiple formats** - human-readable, JSON, CSV, TSV
14
+ - **Fast and efficient** - built with Rust
15
+ - **Rich statistics** - detailed breakdown by file extension and directory
14
16
 
15
- ## 🚀 Quick Start
17
+ ## Quick Start
16
18
 
17
19
  ### Installation
18
20
 
@@ -23,19 +25,19 @@ npm install -g locio
23
25
  ### Your First Count
24
26
 
25
27
  ```bash
26
- # Count files and lines in current directory
28
+ # Count files and lines in current directory (shows interactive menu)
27
29
  locio
28
30
 
29
31
  # Count in specific directory
30
32
  locio /path/to/directory
31
33
 
32
- # Count only Rust files
33
- locio --include-ext .rs --stats
34
+ # Count only Rust files (dot is optional: .rs or rs both work)
35
+ locio --include-ext rs --stats
34
36
  ```
35
37
 
36
- ## 📚 Documentation
38
+ ## Documentation
37
39
 
38
- **📖 [Full Documentation Available Here](https://github.com/kiron0/locio#readme)**
40
+ **[Full Documentation Available Here](https://github.com/kiron0/locio#readme)**
39
41
 
40
42
  The documentation includes:
41
43
 
@@ -45,7 +47,7 @@ The documentation includes:
45
47
  - Output format specifications
46
48
  - Best practices and tips
47
49
 
48
- ## 🛠️ Basic CLI Usage
50
+ ## Basic CLI Usage
49
51
 
50
52
  ```bash
51
53
  # Count files and lines
@@ -60,21 +62,21 @@ locio --lines-only
60
62
  # Exclude patterns
61
63
  locio --exclude ".*\.log$" --exclude-dir node_modules
62
64
 
63
- # Include only specific extensions
64
- locio --include-ext .rs,.ts,.js --stats
65
+ # Include only specific extensions (comma-separated, dots optional)
66
+ locio --include-ext rs,ts,js --stats
65
67
 
66
68
  # Output in JSON format
67
69
  locio --output json
68
70
  ```
69
71
 
70
- ## 💻 Quick Example
72
+ ## Quick Example
71
73
 
72
74
  ```bash
73
75
  # Count Rust source files with statistics
74
- locio --include-ext .rs --stats
76
+ locio --include-ext rs --stats
75
77
 
76
- # Count TypeScript files excluding node_modules
77
- locio --include-ext .ts,.tsx --exclude-dir node_modules
78
+ # Count TypeScript files excluding node_modules (multiple extensions supported)
79
+ locio --include-ext ts,tsx --exclude-dir node_modules
78
80
 
79
81
  # Count with size limits and binary exclusion
80
82
  locio --max-size 5MB --no-binary --stats
@@ -85,6 +87,6 @@ locio --stats --output json > stats.json
85
87
 
86
88
  ---
87
89
 
88
- **📖 [Visit the full documentation](https://github.com/kiron0/locio#readme) for complete CLI reference, examples, and tutorials.**
90
+ **[Visit the full documentation](https://github.com/kiron0/locio#readme) for complete CLI reference, examples, and tutorials.**
89
91
 
90
- _"Locio: Count your code, not your worries."_ 📊
92
+ _"Locio: Count your code, not your worries."_
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "locio",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A powerful CLI tool to count lines and files in directories with extensive filtering options",
5
5
  "bin": {
6
+ "lc": "target/release/locio",
6
7
  "locio": "target/release/locio"
7
8
  },
8
9
  "scripts": {
@@ -25,7 +26,8 @@
25
26
  "author": "Toufiq Hasan Kiron <hello@kiron.dev>",
26
27
  "license": "MIT",
27
28
  "files": [
28
- "target/release/locio"
29
+ "target/release/locio",
30
+ "target/release/lc"
29
31
  ],
30
32
  "repository": {
31
33
  "type": "git",
Binary file