Name: ssb-msg-content
Owner: Secure Scuttlebutt Consortium
Description: null
Created: 2018-03-20 03:04:22.0
Updated: 2018-03-20 09:38:03.0
Pushed: 2018-03-20 09:38:02.0
Homepage: null
Size: 1
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Take an ssb message object and grab just the content
getContent = require('ssb-msg-content')
content = getContent(msg)
where msg
could be of form:
{ key, value }
- often provided by feed streams{ author, content, timestamp }
- the raw value as provided by e.g. sbot.get
{ type, ... }
- you are already looking at the content!outputs
pe: String,
.otherProps