An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# privnote

> Unofficial Privnote.com Client for Node.js

[![Build Status](https://travis-ci.org/abrkn/privnote.svg?branch=master)](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