Browser CacheStorage chunk store that is abstract-chunk-store compliant
npm install cache-storage-chunk-store
or include it directly:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cache-storage-chunk-store.min.js"></script>
const CacheStorageChunkStore = require('cache-storage-chunk-store')
const chunks = new CacheStorageChunkStore(10)
chunks.put(0, buffer, (err) => console.error(err))
chunks.get(0, (err, buf) => console.log(err, buf))
MIT