Some helper functions for common Secure Scuttlebot actions.
npm install ssb-helpersSome helper functions for using scuttlebot. All functions are async so use newer version of NodeJS.
Simply install and import the functions:
npm i -S ssb-helpers
``js
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.