Socket
Book a DemoInstallSign in
Socket

fs-access-chunk-store

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-access-chunk-store

File System Access API chunk store that is abstract-chunk-store compliant

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
2
Maintainers
2
Weekly downloads
 
Created
Source

fs-access-chunk-store ci npm downloads javascript style guide

File System Access API chunk store that is abstract-chunk-store compliant

abstract chunk store

Install

npm install fs-access-chunk-store

Usage

const fsAccessChunkStore = require('fs-access-chunk-store')
const chunks = fsAccessChunkStore(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
  })
})

Options

  • length: Total size of the chunk store (optional, default: Infinity)
  • name: Top-level directory to create for this store (optional, default: default)
  • rootDir: Root directory handle (optional, default: navigator.storage.getDirectory())

License

MIT. Copyright (c) Socket Inc

Keywords

abstract-chunk-store

FAQs

Package last updated on 09 Jul 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