Socket
Socket
Sign inDemoInstall

dat-knowledge-archive

Package Overview
Dependencies
16
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dat-knowledge-archive

a content-addressible archive for reproducible knowledge


Version published
Maintainers
1
Install size
271 kB
Created

Readme

Source

dat-knowledge-archive

a content-addressible archive for reproducible knowledge.

designed to work with dat-transform

Usage

const knowledge = require('dat-knowledge-archive')
const hyperdrive = require('hyperdrive')
const memdb = require('memdb')

var drive = hyperdrive(memdb())

knowledge(drive, 'parentKey', 'serializedTransforms', (err, archive) => {
  archive.getParent((err, str) => {
    // str = 'parentKey'
  })

  archive.getTransforms((err, str) => {
    // str = 'serializedTransforms'
  })

  archive.key() // content-addressing key
})

License

The MIT License

Keywords

FAQs

Last updated on 30 Oct 2016

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