Skip to content

DKunin/dat-deamon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Small module to scaffold a small dat node process with the help of pm2 probably

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published