hyperdrive-ui

v4.0.2
Render a hyperdrive in the browser.

hyperdrive-ui

Explore the contents of a hyperdrive in the browser.

Example

Live demo: http://dat.land/

usage

npm install hyperdrive-ui

hyperdriveUI(archive, opts, onclick)

Renders the explorer.

var explorer = require('hyperdrive-ui')
function onclick (ev, entry) {
  console.log('clicked', entry.name, entry.type)
}
var tree = explorer(archive, onclick)
document.querySelector('#hyperdrive').appendChild(tree)

get started

npm install
npm start
npm i hyperdrive-ui

Metadata

  • MIT
  • Whatever
  • Karissa McKelvey
  • released 9/22/2016

Downloads