git ssb

0+

clemo / ssb-ipfs-share



forked from arj / dat-share
Tree:
📄README.md
📄bin.js
📄index.js
📄lib.js
📄package-lock.json
📄package.json
README.md

ssb-dat-share

Find dat links in posts and share them automatically

Command line usage (assuming you want to share from the dats folder):

node bin.js -f ./dats

Can also take a -i option to only share links from people you follow.

This should give you something like this:

Looking for dat links
Found 2
Saving to: ./dats/50237519bcfec8c86632112906ee39c76004a3d4bbf1b342c0b2926f4af67d35
Saving to: ./dats/64a10ea39416aceb6c5852d262c89edc1dfa95d4c3f1f838eb36c4cb2edffc2a
sharing: dat://50237519bcfec8c86632112906ee39c76004a3d4bbf1b342c0b2926f4af67d35
sharing: dat://64a10ea39416aceb6c5852d262c89edc1dfa95d4c3f1f838eb36c4cb2edffc2a

Sbot plugin usage:

mkdir -p ~/.ssb/node_modules
cd ~/.ssb/node_modules
git clone ssb://%HGaRHwvAX9LW8lUAaz8NypXZRCVqOsHTKhj//pkiEiQ=.sha256 ssb-dat-share && cd ssb-dat-share
npm install
sbot plugins.enable ssb-viewer
# restart sbot

For configuration, you can change options in ~/.ssb/config, add:

  "datShare": {
    "shareFolder": "PATH_TO_MY_SHARE_FOLDER",
    "onlyPeopleIFollow": true
  }

Built with git-ssb-web