ssb-helpers

0.0.8 • Public • Published

SSB-HELPERS

Some helper functions for using scuttlebot. All functions are async so use newer version of NodeJS.

Usage

Simply install and import the functions:

npm i -S ssb-helpers

const { whoami } from 'ssb-helpers' 
 
const getMyId = async (sbot) => {
  try {
    const myId = await whoami(sbot)
    console.log(myId)
  } catch (err) throw err
}
 

For the API either check the index.js file or ssb-graphql-defaults which implements it over GraphQL.

Package Sidebar

Install

npm i ssb-helpers

Weekly Downloads

4

Version

0.0.8

License

ISC

Unpacked Size

9.1 kB

Total Files

9

Last publish

Collaborators

  • luandro