You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: improve README discoverability for NuGet and npm
Add keyword-rich descriptions, "Why This Library" section, use cases,
badges, and encode/decode examples to help developers find the package
when searching for EPC encoder, GTIN to RFID, or tag programming.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+32-8Lines changed: 32 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,31 @@
1
1
# TagDataTranslation
2
2
3
-
Tag Data Translation implemented according to the **GS1 EPC Tag Data Standard (TDS) 2.3**specification for RAIN RFID.
3
+
**Encode and decode GS1 EPC identifiers for RAIN (UHF) RFID tags.**Convert between GTIN, SSCC, SGLN, and 50+ other formats — from barcode to EPC hex and back.
4
4
5
-
**Online demo**: https://www.mimasu.nl/tdt
5
+
Implements the **GS1 EPC Tag Data Standard (TDS) 2.3** and **Tag Data Translation (TDT) 2.2** specifications. Used in production for RFID tag programming, inventory systems, and supply chain applications.
GS1 EPC Tag Data Translation for JavaScript and TypeScript, powered by WebAssembly.
3
+
**Encode and decode GS1 EPC identifiers for RAIN (UHF) RFID in JavaScript and TypeScript.** Convert between GTIN, SSCC, SGLN, and 50+ other formats — from barcode to EPC hex and back.
4
4
5
-
Encode and decode all EPC schemes: SGTIN, SSCC, SGLN, GRAI, GIAI, GSRN, GDTI, and more. Supports TDS 2.3 with Digital Link URIs and '++' hostname encoding.
5
+
Powered by WebAssembly. No native dependencies. Works in Node.js and browsers.
6
+
7
+
Implements the **GS1 EPC Tag Data Standard (TDS) 2.3** and **Tag Data Translation (TDT) 2.2** specifications.
8
+
9
+
**Try it online**: https://www.mimasu.nl/tag-data-translation/try-online
Translate without throwing. Returns null on failure.
79
+
Same as `translate`, but returns `null` instead of throwing. Use this for high-throughput scenarios.
44
80
45
81
### `engine.hexToBinary(hex): string`
46
82
47
-
Convert hexadecimal to binary string.
83
+
Convert hexadecimal string to binary string.
48
84
49
85
### `engine.binaryToHex(binary): string`
50
86
51
-
Convert binary string to hexadecimal.
87
+
Convert binary string to hexadecimal string.
88
+
89
+
## Supported Schemes
90
+
91
+
SGTIN-96, SGTIN-198, SSCC-96, SGLN-96, SGLN-195, GRAI-96, GRAI-170, GIAI-96, GIAI-202, GSRN-96, GSRNP-96, GDTI-96, GDTI-113, GDTI-174, SGCN-96, ITIP-110, ITIP-212, GID-96, CPI-96, CPI-var, ADI-var, USDOD-96, plus all TDS 2.3 '+' and '++' variants with Digital Link URI support.
52
92
53
93
## Performance
54
94
55
-
The underlying .NET engine translates a typical SGTIN-96 in ~8 us. Hex/binary conversion completes in under 100 ns. The WASM bridge adds minimal overhead on top of the native .NET performance.
95
+
The underlying .NET engine runs as compiled WebAssembly — no interpretation overhead.
56
96
57
-
| Operation |.NET native|
58
-
|-----------|-------------|
97
+
| Operation |Time|
98
+
|-----------|------|
59
99
| SGTIN-96 encode | 7.8 us |
60
100
| SGTIN-96 decode | 7.7 us |
61
101
| HexToBinary (96-bit) | 99 ns |
62
102
| BinaryToHex (96-bit) | 54 ns |
63
103
64
104
## License
65
105
66
-
Business Source License 1.1. Production use requires a commercial license -- contact tdt@mimasu.nl.
106
+
Business Source License 1.1 (BSL-1.1). Non-production use (development, testing, evaluation) is free. Production use requires a commercial license — contact tdt@mimasu.nl.
107
+
108
+
See [LICENSING.md](https://github.com/dannyhaak/TagDataTranslation/blob/master/LICENSING.md) for full details.
0 commit comments