Minima.js API / @minimajs/disk / helpers
helpers
Functions
| Function | Description |
|---|---|
| async2stream | - |
| createDiskFile | - |
| ensureMetadataSymbols | Copies symbol-keyed entries from src into dest. Used to propagate plugin-private state through the put pipeline without requiring drivers to preserve symbol keys. |
| fileFromMetadata | - |
| getDisk | Retrieve the originating Disk from any File (undefined if not set) |
| getMimeType | Detect MIME type from file path/key using the mime-types library |
| isArrayBuffer | - |
| isArrayBufferView | - |
| isBlob | - |
| isDiskFile | - |
| isFile | - |
| randomName | - |
| resolveContentType | Resolve content type from options or data Uses FilePropertyBag's 'type' property (web-native) |
| resolveKey | Resolve a path/key from a FileSource. - DiskFile → .href (storage identifier) - File → .name - string → returned as-is |
| setDisk | Attach a Disk reference to a file — called internally by StandardDisk |
| stream2bytes | - |
| text2stream | - |
| toReadableStream | Convert any DiskData type to a ReadableStream |