Skip to content

regular/tre-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published