Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.23 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.23 KB

cache-storage-chunk-store

npm downloads dependencies license

Browser CacheStorage chunk store that is abstract-chunk-store compliant

abstract chunk store

Install

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>

Usage

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))

License

MIT