# ssb-msg-content

> USAGE: common-readme [-r|--repo REPO-NAME] [-l|--license LICENSE]

Latest version **1.0.1** (published 2018-03-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install ssb-msg-content
pnpm add ssb-msg-content
yarn add ssb-msg-content
bun add ssb-msg-content
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-03-20 |
| First published | 2018-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | mixmix |

## Links

- npm: https://www.npmjs.com/package/ssb-msg-content
- Repository: https://github.com/ssbc/ssb-msg-content
- Homepage: https://github.com/ssbc/ssb-msg-content#readme
- Issues: https://github.com/ssbc/ssb-msg-content/issues
- npm.io page: https://npm.io/package/ssb-msg-content

## Recent versions

- 1.0.1 (latest) — 2018-03-20
- 1.0.0 — 2018-03-20

## README

# ssb-msg-content

Take an ssb message object and grab just the content

## Usage

```js
var getContent = require('ssb-msg-content')

var 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

```js
{
  type: String,
  ...otherProps
}
```

---
_Source: https://npm.io/package/ssb-msg-content · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
