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
const hyperdb = require('hyperdb') | |
const ram = require('random-access-memory') | |
function create (key, opts) { | |
opts = opts || {valueEncoding: 'utf-8'} | |
return hyperdb(ram, key, opts) | |
} | |
function replicate (a, b, opts) { | |
opts = opts || {live: true} |
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
const choo = require('choo') | |
const html = require('choo/html') | |
const Nanocomponent = require('nanocomponent') | |
class Image extends Nanocomponent { | |
constructor (image) { | |
super() | |
this.image = image | |
} |