https://github.com/abrkn/privnote
Unofficial Privnote.com Client for Node.js
https://github.com/abrkn/privnote
nodejs privnote
Last synced: 6 months ago
JSON representation
Unofficial Privnote.com Client for Node.js
- Host: GitHub
- URL: https://github.com/abrkn/privnote
- Owner: abrkn
- License: mit
- Created: 2017-11-01T06:08:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-08T03:53:11.000Z (almost 3 years ago)
- Last Synced: 2024-11-20T09:06:57.228Z (6 months ago)
- Topics: nodejs, privnote
- Language: JavaScript
- Size: 39.1 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# privnote
> Unofficial Privnote.com Client for Node.js
[](https://travis-ci.org/abrkn/privnote)
# Install
`npm install privnote`
# Usage
```javascript
const { createPrivnote, retrievePrivnote } = require('privnote');const created = await createPrivnote('hello privnote.com!');
console.log(created);
// { id: 'Fbg9fXIf',
// url: 'https://privnote.com/Fbg9fXIf#3pVfRzWrr',
// passphrase: '3pVfRzWrr' }const retrieved = await retrievePrivnote(created.id, created.passphrase);
console.log(retrieved);
// hello privnote.com!
```See `example.js`
# Test
`npm test`
# Author
Andreas Brekken