A random-access-storage provider that implements the non-standard IDBMutableFile API in Firefox/Gecko. v0.3.0 (last released in 2018) provides a virtual file system within IndexedDB, avoiding loading entire file contents into memory. Works only in Firefox (or Gecko-based browsers). Alternative to random-access-file for WebExtensions, with limited runtime support. Intended as a drop-in replacement for random-access-file with the trade-off of browser restriction.
npm install random-access-idb-mutable-fileNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Mounts IDBMutableFile storage, writes a buffer at offset 10, reads 5 bytes, logs result, then closes file.
Consider using random-access-idb or random-access-file for broader compatibility.
Call await RandomAccess.mount() and then use the returned factory.
Use const file = storage(filename, options) without new.
Wrap callbacks in new Promise as shown in quickstart.
Ensure Buffer is available (e.g., import { Buffer } from 'buffer' in browser environments).Use 'import RandomAccess from "random-access-idb-mutable-file"'
Use 'const file = storage(filename, options)' without new