https://github.com/regular/tre-client
https://github.com/regular/tre-client
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/regular/tre-client
- Owner: regular
- Created: 2018-11-04T16:13:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-25T09:06:42.000Z (almost 5 years ago)
- Last Synced: 2024-04-28T03:18:56.677Z (about 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tre-client
Fully automated client connections for web applications based on secure-scuttlebutt
## Example
```
const {client} = require('tre-client')
client( (err, ssb, config) => {
if (err) return console.error(err)
ssb.whoami( (err, feed) => {
if (err) return console.error(err)
console.log('pub key', feed.id)
})
})
```
> Note: tre-client assumes that your sbot configuration is in a file called `.trerc` in your project's home directory (next to package.json).
## Install
```
sbot plugins.install tre-client
```
## See also
[tre-init](https://github.com/regular/tre-init)