dat-knowledge-archive
v0.0.1
Published
a content-addressible archive for reproducible knowledge
Downloads
3
Readme
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