1.0.0 • Published 8 years ago

web-to-dat v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

Web2Dat

Clone a (static) website, create hash, and share via dat (optional)

Usage

var web2dat = require('web-to-dat')
web2dat('http://google.com', function (err, outDir, dat) {
  if (err) throw err
  console.log('Site scraped to:', outDir)
  console.log('Dat link:', dat.link)

  // Start sharing via Dat (not shared by default)
  dat.joinSwarm(function (err) {
    if (err) throw err
    console.log('Sharing Link')
  })
})

Uses

  • Use as a p2p CDN?
  • Make a new browser that only browses static sites via p2p
  • Mirror all github pages