dat-deamon

0.0.2 • Public • Published

Dat Deamon

Simplistic script to make a simple writing peer for dat network. Nice to use with the help of pm2 to make a process.

Usage

Install

npm i dat-deamon

Make a js script

'use strict'

const datDeamon = require('dat-deamon');

datDeamon.start({
    path: '~/Screenshots' // path that you want to share
}).then(({ network, progress, key }) => {
    console.log(key); // this just prints out the dat key
    network.on('connection', function(connection, info) {
        console.log(info); // this is only neede if you want to check the connection
    });
    progress.on('put', function(src, dest) {
        console.log('Importing ', src.name, ' into archive'); // to log modified files
    });
});

Probably better alternatives

MIT @dkunin

Readme

Keywords

Package Sidebar

Install

npm i dat-deamon

Weekly Downloads

3

Version

0.0.2

License

MIT

Unpacked Size

3.19 kB

Total Files

4

Last publish

Collaborators

  • dkunin