@jannael/glinter 1.2.2 → 1.2.4

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.
Files changed (3) hide show
  1. package/README.md +30 -8
  2. package/dist/index.js +646 -583
  3. package/package.json +77 -64
package/README.md CHANGED
@@ -6,9 +6,6 @@
6
6
  <img alt="Glinter" src="https://github.com/Jannael/glinter/raw/main/apps/web/public/og.png">
7
7
  </picture>
8
8
  </a>
9
- <br>
10
- <br>
11
- <br>
12
9
  </p>
13
10
 
14
11
  Glinter is a high-performance, transparent Git wrapper built with **Bun**.
@@ -21,16 +18,28 @@ Glinter is a high-performance, transparent Git wrapper built with **Bun**.
21
18
 
22
19
  ## Preview
23
20
 
21
+ ### Badge
22
+
23
+ | Preview | Copy |
24
+ | ------- | ---- |
25
+ | [![Glinter](https://glinter.jannael.com/badge.svg)](https://glinter.jannael.com) | `[![Glinter](https://glinter.jannael.com/badge.svg)](https://glinter.jannael.com)` |
26
+
24
27
  <video src="https://github.com/user-attachments/assets/63b401a0-e1e1-453c-9e38-c36cd14e200f" controls="false" autoplay="true" loop="true" muted="true" style="max-width: 100%;">
25
28
  Your browser does not support the video tag.
26
29
  </video>
27
30
 
28
31
  ### Screenshots
29
32
 
30
- | `g add` | `g commit` |
31
- |---|---|
33
+ | `g add` | `g commit` |
34
+ | ------------------------------------ | --------------------------------------- |
32
35
  | ![glinter add](./screenshots/ga.png) | ![glinter commit](./screenshots/gc.png) |
33
36
 
37
+ ## Security
38
+
39
+ Security is a top priority for this project.
40
+
41
+ This project uses Bun as its runtime and package manager. You don't need to worry about package vulnerabilities — the `bunfig.toml` configuration includes `minimumReleaseAge = 259200` (3 days), which prevents newly published packages from being installed automatically. This protects against supply chain attacks that have become increasingly common in the npm ecosystem.
42
+
34
43
  ## Features
35
44
 
36
45
  - **Abbreviation**: You can use `g` instead of `git`.
@@ -39,20 +48,32 @@ Your browser does not support the video tag.
39
48
 
40
49
  - **Transparent Wrapper**: For every other command (like `commit`, `push`, `log`, or `status`), Glinter acts as a direct tunnel to Git. It preserves all original colors, formatting, and interactive features of the native Git CLI.
41
50
 
51
+ ## Test environment
52
+
53
+ - for windows i used my own laptop (windows 11) so if you have a problem please create an issue
54
+
55
+ - for linux i used WSL (windows subsystem linux) with a kali-linux vm so if you have a problem please create an issue
56
+
42
57
  ## How it works
43
58
 
44
59
  Glinter is designed to be as "natural" as possible, meaning it shouldn't feel like a wrapper at all.
45
60
 
46
61
  ### 1. The Transparent Proxy
47
- In `src/index.ts`, Glinter uses `Bun.spawn` with `stdio: 'inherit'`. This is a low-level operation that connects the standard input, output, and error streams of the Git process directly to your terminal.
62
+
63
+ In `src/index.ts`, Glinter uses `Bun.spawn` with `stdio: 'inherit'`. This is a low-level operation that connects the standard input, output, and error streams of the Git process directly to your terminal.
64
+
48
65
  - **Result**: Git "knows" it's in a real terminal, so it correctly detects colors and allows for interactive prompts (like credential entry).
49
66
 
50
67
  ### 2. Reliable Status Parsing
51
- For the interactive `add` feature, Glinter runs `git status --porcelain`.
68
+
69
+ For the interactive `add` feature, Glinter runs `git status --porcelain`.
70
+
52
71
  - **Why?**: Standard `git status` output is designed for humans and can change based on your Git version or system language. `--porcelain` is a machine-readable format that is consistent across all environments, making the file detection 100% reliable.
53
72
 
54
73
  ### 3. Interactive Selection
55
- Using the `@clack/prompts` library, Glinter transforms the raw status data into a selectable list.
74
+
75
+ Using the `@clack/prompts` library, Glinter transforms the raw status data into a selectable list.
76
+
56
77
  - The selection logic uses Bun's high-speed shell to execute the final `git add` command, correctly escaping filenames to handle spaces and special characters.
57
78
 
58
79
  ## Installation
@@ -70,6 +91,7 @@ npm install -g @jannael/glinter
70
91
  3. **Link the binary**: `bun link`
71
92
 
72
93
  now you can simply run:
94
+
73
95
  ```bash
74
96
  g add # Opens the interactive selector
75
97
  g commit # Opens commit type + message prompt