Skip to content

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

License

Notifications You must be signed in to change notification settings

SocketDev/cache-storage-chunk-store

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/cache-storage-chunk-store@1.x/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

About

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

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%