mention-extractor

Extract at mentions from string

Usage no npm install needed!

<script type="module">
  import mentionExtractor from 'https://cdn.skypack.dev/mention-extractor';
</script>

README

mention-extractor

See the src/index file for all functions

import { extractAllAtMentions } from 'mention-extractor';

const mentions = extractAllAtMentions(comment, { removeAt: true });