npm.io
1.0.0 • Published 10 years ago

dat-explorer

Licence
MIT
Version
1.0.0
Deps
8
Vulns
1
Weekly
0

dat-explorer

Explore the contents of a dat link in the browser.

TODO

  • work entirely in the browser
  • have a big download button
  • selective file or folder download
  • display metadata (like last modified, size) in file list
  • handle sub-directories

Example

npm install
npm start

usage

npm install dat-explorer

Renders the explorer given an HTML DOM element and a dat:// link.

var explorer = require('dat-explorer')
var link = 'dat://ea18e8fe42b1c344d8bfcdf6449d61f5228767ef8b5e9155768bba436245af84'
explorer('#dat', link)