Minima.js API / @minimajs/disk / snapshot
snapshot
Interfaces
| Interface | Description |
|---|---|
| RestoreOptions | - |
| SnapshotOptions | - |
Functions
| Function | Description |
|---|---|
| restore | Restore a snapshot ZIP from src into dest (defaults to src if omitted). The ZIP is streamed — individual files are never fully buffered in memory. |
| snapshot | Snapshot files from src into a single streaming ZIP on dest. No files are buffered in memory — data streams directly through the ZIP encoder. Compression, encryption, and other transforms are handled by plugins on dest. |