Skip to content
Handy command-line tool to post PGP-signed messages
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Module
.gitignore
Engine.js
LICENSE
README.txt
main.js
package-lock.json
package.json

README.txt

# bnwpgp
Handy command-line tool to post PGP-signed messages

Prerequisites:
- Node.js + npm
- Private certificate created and/or imported to gpg

Installation:
git clone https://github.com/afwbkbc/bnwpgp.git &&
cd bnwpgp &&
npm install

Usage:
node main.js <jid> <password> <gpg user> <command> [<arguments>] <text...>

Examples:
node main.js kek@jabber.ru 'sds6S%Dsdg' gpg_bnw_huita post 'kek' # post a post
node main.js kek@jabber.ru 'sds6S%Dsdg' gpg_bnw_huita post '*kek,puk,pokekaem kek' # post with tags ( up to 5 )
node main.js kek@jabber.ru 'sds6S%Dsdg' gpg_bnw_huita comment '#123456' 'kek' # post a comment to post
node main.js kek@jabber.ru 'sds6S%Dsdg' gpg_bnw_huita comment '#123456/789' 'kek' # post a comment to comment of post
node main.js kek@jabber.ru 'sds6S%Dsdg' gpg_bnw_huita comment 123456 'kek' # post a comment to post ( can omit '#' symbol and quotes )
node main.js kek@jabber.ru 'sds6S%Dsdg' gpg_bnw_huita comment '#123456' '
kek1
kek2
kek3
' # can post a multiline post

You can’t perform that action at this time.