Socket
Socket
Sign inDemoInstall

@dstanesc/idb-block-store

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @dstanesc/idb-block-store

Local content-addressable storage (CAS) based on IndexedDB


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

IDB Block Store

Local content-addressable storage (CAS) based on IndexedDB and IDB-Keyval wrapper.

API

put: (block: { cid: any, bytes: Uint8Array }) => Promise<void>
get: (cid: any) => Promise<Uint8Array>

Usage

import { blockStore } from '@dstanesc/idb-block-store'

const cache = {}
const { get, put } = blockStore({ /*cache,*/});

Build

npm run clean
npm install
npm run build

Test

npm run test

Licenses

Licensed under either Apache 2.0 or MIT at your option.

FAQs

Last updated on 22 Nov 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc