Files: ee570c41c6e2c24f4c77c9f3c9f14811bfb29f5f / index.js
452 bytesRaw
1 | var lib = require('./lib'); |
2 | |
3 | exports.name = 'dat-share' |
4 | exports.version = require('./package.json').version |
5 | exports.manifest = {} |
6 | |
7 | exports.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