@intechstudio/grid-protocol 1.20260302.1321 → 1.20260304.1550

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
@@ -2,4 +2,49 @@
2
2
 
3
3
  Decoder path should be
4
4
 
5
- ```~/.local/share/libsigrokdecode/decoders```
5
+ `~/.local/share/libsigrokdecode/decoders`
6
+
7
+ ## CLI Tools
8
+
9
+ ### Setup
10
+
11
+ After pulling the repository, install dependencies and build:
12
+
13
+ ```bash
14
+ npm install
15
+ npm run build
16
+ ```
17
+
18
+ ### Minify (human-readable → device format)
19
+
20
+ ```bash
21
+ # Inline script
22
+ node minify.mjs "midi_send(ch, 176, cc, val)" 2>/dev/null
23
+
24
+ # From a file
25
+ node minify.mjs path/to/script.lua 2>/dev/null
26
+ ```
27
+
28
+ Example output:
29
+
30
+ ```
31
+ gms(ch,176,cc,val)
32
+ ```
33
+
34
+ ### Humanize (device format → human-readable)
35
+
36
+ ```bash
37
+ # Inline script
38
+ node humanize.mjs "gms(ch,176,cc,val)" 2>/dev/null
39
+
40
+ # From a file
41
+ node humanize.mjs path/to/script.lua 2>/dev/null
42
+ ```
43
+
44
+ Example output:
45
+
46
+ ```
47
+ midi_send(ch, 176, cc, val)
48
+ ```
49
+
50
+ > Note: Invalid Lua syntax will throw a parse error with the token and position.