Created
June 12, 2016 17:45
-
-
Save andrewosh/202f7f913eae0ce052904b02b0f0f3f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var memdb = require('memdb') | |
var crypto = require('crypto') | |
var hyperdrive = require('hyperdrive') | |
var drive = hyperdrive(memdb()) | |
var archive = drive.createArchive('21db26992a79966fc3336a711122ba160910cc6ce24bd6552cb21949d6c9d1d5', { live: true }) | |
console.log('key:', archive.key.toString('hex')) | |
archive.list(function (err, entries) { | |
console.log('err:', err) | |
console.log('entries:', entries) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment