Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ssb-mentions

Package Overview
Dependencies
Maintainers
11
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssb-mentions

extract the mentions in a ssb message, just using the markdown. this is _mostly compatible_ with the way patchwork does it. but simpler, because it relies only on the markdown.

  • 0.5.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
11
Created
Source

ssb-mentions

extract the mentions in a ssb message, just using the markdown. this is mostly compatible with the way patchwork does it. but simpler, because it relies only on the markdown.

var mentions = require('ssb-mentions')

var ary = mentions(markdown, opts)

options

  • bareFeedNames (boolean, default false): if true, include stub mention objects for bare feed name mentions, in the format {name: "NAME", link: "@"}. these can then have the link filled in with a feed id, to make a "patchwork-style mention", or be removed from the mentions array before publishing.
  • emoji (boolean, default false): if true, include emoji in the mentions array, in the form {name: "NAME", emoji: true}.

License

MIT

FAQs

Package last updated on 19 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc