localForage persistent browser chunk store that is abstract-chunk-store compliant
npm install localforage-chunk-store
var LocalForageChunkStore = require('localforage-chunk-store')
var chunks = new LocalForageChunkStore(chunkLength, [opts])
chunks.put(0, new Buffer('01234567890'), function (err) {
if (err) throw err
chunks.get(0, function (err, chunk) {
if (err) throw err
console.log(chunk) // '01234567890' as a buffer
})
})
MIT. Copyright (c) Yoann Ciabaud.