Skip to content

berleant/dat-browserify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dat-browserify

Use dat in the browser.

TODO

  • webrtcswarm + signalhub support
  • implement adding files for fs.js

This is a work in progress, test it out with:

var tar = require('tar-stream')
var Dat = require('dat-browserify')

var db = Dat({
  signalhub: ['myapp', 'http://signalhub.myexternalip.com']
})

var link = 'dat://asdf34dnf1dfsfj'
var pack = tar.pack()
db.download(link, pack, function (err, link, port, close) {
  console.log('Done!')
})

About

Use dat in the browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published