Skip to content

yciabaud/localforage-chunk-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

localForage-chunk-store travis

localForage persistent browser chunk store that is abstract-chunk-store compliant

Install

npm install localforage-chunk-store

Usage

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

License

MIT. Copyright (c) Yoann Ciabaud.

About

localForage chunk store that is abstract-chunk-store compliant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published