Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nonrational/privnote-cli
:key: the power of privnote.com in your terminal
https://github.com/nonrational/privnote-cli
javascript nodejs one-time-passwords passwords privnote privnote-cli secret-sharing secrets-management
Last synced: 3 days ago
JSON representation
:key: the power of privnote.com in your terminal
- Host: GitHub
- URL: https://github.com/nonrational/privnote-cli
- Owner: nonrational
- License: gpl-2.0
- Created: 2014-03-05T21:04:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-12T14:39:31.000Z (about 5 years ago)
- Last Synced: 2024-04-26T11:22:26.304Z (7 months ago)
- Topics: javascript, nodejs, one-time-passwords, passwords, privnote, privnote-cli, secret-sharing, secrets-management
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/privnote-cli
- Size: 66.4 KB
- Stars: 44
- Watchers: 7
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **privnote-cli** [![Build Status](https://secure.travis-ci.org/nonrational/privnote-cli.svg?branch=master)](http://travis-ci.org/nonrational/privnote-cli)
_the power of [privnote.com](https://privnote.com) in your terminal_#### [privnote.com](https://privnote.com): Send notes that will self-destruct after being read.
Privnote.com allows you to create encrypted, burn-after-reading notes over the internet. `privnote-cli` allows you generate privnote links at the commandline. After you create a note, send the link to your intended recipient to open in a browser.
### Installation
```bash
npm install -g privnote-cli
# don't forget to `nodenv rehash` if you're using nodenv
```### Usage
You bring the plaintext; `privnote` will print the link to stdout _and_ the clipboard.
#### Type directly into stdin a la `gpg`. (Recommended)
```
$ privnote
bob,
the narwhal bacons at midnight.
-- alice
^D
https://privnote.com/n/abcdefghijklmnop/#qrstuvwxyz123456
```#### Pipe the output of a command to privnote.
Be sure to clear your shell history (`$HISTFILE`) if you included secrets in your command.
```
$ ruby -e 'require "securerandom"; print "#{SecureRandom.urlsafe_base64(12)}\n";' | privnote
https://privnote.com/n/abcdefghijklmnop/#qrstuvwxyz123456
```#### Privnote files directly via input redirection.
```
$ privnote < secrets.txt
https://privnote.com/n/abcdefghijklmnop/#qrstuvwxyz123456
```#### Release History
- v0.2.1 - Fix `yarn` installation (h/t @deecewan)
- v0.2.0 - Default to "no-ask" mode & provide --ask flag, upgrade to Privnote Ver. 1.1-24-gffcdb2d
- v0.1.0 - more recent node, remove trailing space, specify license
- v0.0.12 - Fixed compatibility with Privnote Ver. 1.0-41-g038c13a##### Releasing
```
echo "doh! i forgot the releasing section" >> README.md
git add --all
git commit -m"added the releasing section, bc i'm forgetful."
npm version patch
git push origin master
npm publish
```