beakerify a website
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
beakerify.js
index.js
package-lock.json
package.json
test.js

README.md

beakerify

beakerify a website

git clone https://github.com/m-onz/beakerify
cd beakerify
npm install
node ./beakerify www.tx11.co.uk
// or use globally..
sudo npm link
cd ~
beakerify tx11.co.uk

The website will be cloned and shared via dat. Copy the url into the Beaker Browser to view it.

Library usage

var beakerify = require('beakerify')

var b = beakerify ('tx11.co.uk')

b.on('data', function(d){console.log(d);})
b.on('complete', function (meta) {
	console.log(meta); // { dat: 'dat://xxx', path: '/path/to/website' }
})

Dependencies.

This uses wget and dat installed globally (npm install dat -g). Tested on a Raspberry Pi (Debian Linux).