byte-codec 1.1.2 → 1.1.3
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 +19 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
# byte-codec
|
|
2
2
|
|
|
3
|
-
[](https://github.com/ExaDev/byte-codec) [](https://www.npmjs.com/package/byte-codec) [](https://github.com/ExaDev/byte-codec/releases/latest)
|
|
3
|
+
[](https://github.com/ExaDev/byte-codec) [](https://www.npmjs.com/package/byte-codec) [](https://github.com/ExaDev/byte-codec/releases/latest) [](https://github.com/ExaDev/byte-codec/actions)
|
|
4
4
|
|
|
5
5
|
> Generic byte-level primitives (ByteWriter, ByteReader, CRC-32, deflate/inflate) and PNG/JPEG image encoding/decoding with zero PDF knowledge — the shared utility package for the documents.js family.
|
|
6
6
|
|
|
7
7
|
Extracted from [pdf-codec](https://github.com/ExaDev/pdf-codec), where these utilities lived as a directory-isolated subgraph under `src/bytes/` + `src/image/` with no PDF imports. Both pdf-codec and documents.js consume them from this neutral home rather than one fetching byte utilities from a backend.
|
|
8
8
|
|
|
9
|
+
byte-codec has no internal dependencies in the documents.js family — its only external dependency is [`fflate`](https://github.com/101arrowz/fflate) for raw DEFLATE/zlib compression. Both [pdf-codec](https://github.com/ExaDev/pdf-codec) and [documents.js](https://github.com/ExaDev/documents.js) depend on it:
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
graph TD
|
|
13
|
+
bytecodec("byte-codec")
|
|
14
|
+
pdfcodec("pdf-codec")
|
|
15
|
+
documents("documents.js")
|
|
16
|
+
|
|
17
|
+
bytecodec --> pdfcodec
|
|
18
|
+
bytecodec --> documents
|
|
19
|
+
|
|
20
|
+
click bytecodec "https://github.com/ExaDev/byte-codec" "byte-codec"
|
|
21
|
+
click pdfcodec "https://github.com/ExaDev/pdf-codec" "pdf-codec"
|
|
22
|
+
click documents "https://github.com/ExaDev/documents.js" "documents.js"
|
|
23
|
+
|
|
24
|
+
style bytecodec fill:#f9a825,stroke:#333,stroke-width:3px
|
|
25
|
+
```
|
|
26
|
+
|
|
9
27
|
## Getting started
|
|
10
28
|
|
|
11
29
|
Requires Node.js `>=20` and pnpm `11.6.0`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "byte-codec",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Generic byte-level primitives (ByteWriter, ByteReader, CRC-32, deflate/inflate) and PNG/JPEG image encoding/decoding with zero PDF knowledge — the shared utility package for the documents.js family.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|