localforage-chunk-store

0.0.1 • Public • Published

localForage-chunk-store CircleCI

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.

Package Sidebar

Install

npm i localforage-chunk-store

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • neftaly