Nobody Pays (for) Magazines

    idb-chunk-store

    1.0.1 • Public • Published

    idb-chunk-store ci npm downloads javascript style guide

    IndexedDB chunk store that is abstract-chunk-store compliant

    For versions before 1.0, see https://github.com/MinEduTDF/idb-chunk-store

    Install

    npm install idb-chunk-store
    

    Usage

    var idbChunkStore = require('idb-chunk-store')
    var chunks = idbChunkStore(10)
    
    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
      })
    })

    API

    var store = idbChunkStore(chunkLength, opts={})

    Create a new chunk store with chunks of size chunkLength.

    • opts.name - use a name to separate the contents of different stores

    License

    MIT

    Install

    npm i idb-chunk-store

    DownloadsWeekly Downloads

    19

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    7.59 kB

    Total Files

    4

    Last publish

    Collaborators

    • feross
    • santiagogil
    • jhiesey