memory-extract 0.1.5 → 0.1.7

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 (2) hide show
  1. package/README.md +5 -14
  2. package/package.json +2 -3
package/README.md CHANGED
@@ -1,8 +1,6 @@
1
- # memory-extract
1
+ # Memory Extract
2
2
 
3
- Embed files into a PNG image and open them back from the PNG alone.
4
-
5
- Use it to ship static sites, single assets or small apps as portable `.png` cartridges. The image still opens as a normal PNG and the payload lives in a custom chunk inside the file.
3
+ Embed files into a PNG image and open them back from the PNG alone
6
4
 
7
5
  ## Install
8
6
 
@@ -36,8 +34,6 @@ memory-pack dist App # pack ./dist → ./App.png
36
34
  | `--out <path>` | Output PNG path |
37
35
 
38
36
 
39
-
40
-
41
37
  ### `memory-unpack <png> [out-dir]`
42
38
 
43
39
  Extract the packed files from a memory PNG
@@ -47,8 +43,6 @@ memory-unpack dist.png
47
43
  memory-unpack dist.png ./restored
48
44
  ```
49
45
 
50
-
51
-
52
46
  ### `memory-play <png>`
53
47
 
54
48
  Open a memory PNG in the browser
@@ -59,7 +53,7 @@ memory-play App.png
59
53
 
60
54
  ## Library
61
55
 
62
- Browser exports:
56
+ Browser exports
63
57
 
64
58
  ```js
65
59
  import {
@@ -70,14 +64,11 @@ import {
70
64
  } from "memory-extract";
71
65
  ```
72
66
 
73
-
74
-
75
- Node helpers:
67
+ Node helpers
76
68
 
77
69
  ```js
78
70
  import { embedMemory, encodeMemoryPayload } from "memory-extract/node";
79
71
  import { guessMimeType, encodeV2Archive } from "memory-extract/payload";
80
72
  ```
81
73
 
82
- `createMemoryBlob()` is for in-browser launch via blob URLs. The CLI uses HTTP or `file://` instead.
83
-
74
+ `createMemoryBlob()` is for in-browser launch via blob URLs and the CLI uses HTTP or `file://`
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "memory-extract",
3
3
  "description": "Tool for embedding data into PNG images",
4
4
  "license": "MIT",
5
- "version": "0.1.5",
5
+ "version": "0.1.7",
6
6
  "author": "semigarden",
7
7
  "repository": {
8
8
  "type": "git",
@@ -28,7 +28,6 @@
28
28
  "scripts": {
29
29
  "pack": "node tools/pack.mjs",
30
30
  "unpack": "node tools/unpack.mjs",
31
- "play": "node tools/play.mjs",
32
- "test": "node --test test/memory.test.mjs"
31
+ "play": "node tools/play.mjs"
33
32
  }
34
33
  }