git ssb

2+

arj / dat-share



Tree: ee570c41c6e2c24f4c77c9f3c9f14811bfb29f5f

Files: ee570c41c6e2c24f4c77c9f3c9f14811bfb29f5f / index.js

452 bytesRaw
1var lib = require('./lib');
2
3exports.name = 'dat-share'
4exports.version = require('./package.json').version
5exports.manifest = {}
6
7exports.init = function (ssb, config) {
8 var conf = config.datShare || {}
9 var shareFolder = conf.shareFolder || '/tmp'
10
11 console.log("Sharing dat links from:", shareFolder)
12
13 if (conf.onlyPeopleIFollow)
14 lib.getFromPeopleIFollow(ssb, shareFolder, conf.temp)
15 else
16 lib.getAll(ssb, shareFolder, conf.temp)
17}
18

Built with git-ssb-web