🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

idb-chunk-store

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idb-chunk-store

IndexedDB chunk store that is abstract-chunk-store compliant

1.0.1
latest
Source
npm
Version published
Weekly downloads
54
38.46%
Maintainers
3
Weekly downloads
 
Created
Source

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

Keywords

abstract-chunk-store

FAQs

Package last updated on 03 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts