Socket
Book a DemoInstallSign in
Socket

idb-lucass

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idb-lucass

A content addressable file store on top of indexedDB, implemented to the [`lucass`](https://github.com/mikeal/lucass) spec.

latest
Source
npmnpm
Version
1.2.2
Version published
Maintainers
1
Created
Source

idb-lucass

A content addressable file store on top of indexedDB, implemented to the lucass spec.

Coverage Status Build Status dependencies Status

semantic-release Commitizen friendly JavaScript Style Guide

API conforms to the lucass spec and supports optional arguments to the hasher.

const idblucass = require('idb-lucass')
const store = idblucass('noop', argHasher)
store.set(Buffer.from('asdf'), (err, hash) => {
  if (err) throw err
  store.get(hash, (err, buff) => {
    if (err) throw err
    console.log(buff.toString()) // 'asdf'
  })
})

FAQs

Package last updated on 11 Aug 2017

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