UNPKG

@e280/quay

Version:

File-browser and outliner UI for the web

21 lines 505 B
import { MapG } from "@e280/stz"; export class MemoryForklift { #map = new MapG(); async *list() { for (const label of this.#map.keys()) yield label; } async has(label) { return this.#map.has(label); } async save(label, bytes) { this.#map.set(label, bytes); } async load(label) { return this.#map.require(label); } async delete(label) { this.#map.delete(label); } } //# sourceMappingURL=memory-forklift.js.map