Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luandro/ssb-helpers
Helper functions for Scuttlebot
https://github.com/luandro/ssb-helpers
Last synced: about 6 hours ago
JSON representation
Helper functions for Scuttlebot
- Host: GitHub
- URL: https://github.com/luandro/ssb-helpers
- Owner: luandro
- Created: 2018-06-03T11:12:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-04T19:21:09.000Z (almost 6 years ago)
- Last Synced: 2025-01-09T10:26:44.250Z (3 days ago)
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SSB-HELPERS
Some helper functions for using [scuttlebot](https://github.com/ssbc/scuttlebot). All functions are async so use newer version of NodeJS.
## Usage
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](https://github.com/luandro/ssb-graphql-defaults) which implements it over GraphQL.